在包含jQuery之后,但在调用jQuery mobile之前,需要将所有Javascript放在头部。
您的头文件应与此类似(第二个文件中为自定义JS):
<script src="http://pre.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script><script type="text/javascript" src="http://www.example.com/path-to-file/custom-javascript.js"></script><script src="http://pre.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
更新
在页面的链接上,添加属性
data-ajax="false"。如果您想在整个网站范围内禁用Ajax导航,请将以下代码放入“自定义JS”文件中:
$(document).bind("mobileinit", function(){ $.extend( $.mobile , { ajaxEnabled: false });});这是文档的链接:http
:
//jquerymobile.com/demos/1.1.1/docs/api/globalconfig.html



