jQuery $.mobile 库未定义

jQuery $.mobile library is undefined

我已将 jQuery 和 jQuery 手机链接到我的代码。我在控制台中收到此错误:

TypeError: $.mobile is undefined

我重新检查了 URL,一切正常,我更新了文件(jQuery、jQuery 移动版),但问题仍然存在。 我把 jquery.js 放在 jquery.mobile.js

之前

这是我的代码:

    <script src="JS/jquery.js" type="text/javascript"></script>
    <script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script>
    <script src="JS/bootstrap.min.js" type="text/javascript"></script>
    <script src="JS/code.js" type="text/javascript"></script>   

它位于文件末尾。 code.js的内容:http://pastebin.com/3LTcxs9S

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"> 
</script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.3.1/jquery.mobile- 
1.3.1.min.js"></script>

通过替换您的代码来尝试此操作

注意* 在放置所有 jquery 库脚本后,最后放置 jquery 移动脚本,我相信它会起作用