2012-04-06 84 views
0

我遇到同样的问题this person describes。 showPageLoadingMsg()上的微调器永远不会旋转!没有人回答他的问题,所以我什么都没有继续下去。 A有人有任何想法吗?

$.mobile.loadingMessageTextVisible = true; 
    $.mobile.loadingMessage = "please wait..."; 
    $.mobile.showPageLoadingMsg(); 

编辑:这是我使用的包括jQuery Mobile的代码和jQuery在我的网页:我升级到jQuery Mobile的1.1.0

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> 
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /> 
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script> 
+0

什么版本的jQuery Mobile的您使用的是?另外,这段代码在哪里运行? – Jasper 2012-04-06 16:40:06

+0

@ Jasper - 查看我上面的编辑。我使用最新的jquery和jquery mobile 1.0.1,它们都在jquery上运行。 – jdb1a1 2012-04-06 18:29:51

回答

3

,一切似乎是工作的罚款现在。下面是我用别人的代码,可能会遇到这样的:

在头

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> 
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> 

的JS:

$.mobile.loadingMessageTextVisible = true; 
$.mobile.loadingMessage = "please wait..."; 
$.mobile.showPageLoadingMsg(); 
+0

令人讨厌的详细信息..谢天谢地,它看起来像是在1.2中改变(这不是写出这篇文章)http://jquerymobile.com/test/docs/api/methods.html – 2012-07-15 19:30:14

+0

我使用JQuery Mobile 1.1 .1,我仍然有这个问题。 – chrysanhy 2012-08-10 23:45:53