我花了5個小時試圖使用jQuery Mobile顯示加載消息。相反,我得到:當試圖用jQuery Mobile調用'loading'時未捕獲TypeError
Uncaught TypeError: Object #<Object> has no method 'loading'
這裏是我的代碼:
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<script type="text/javascript">
$.mobile.loading("show");
</script>
這裏是當前的代碼:
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<script type="text/javascript">
$.mobile.showPageLoadingMsg();
</script>
</head>
我在哪裏可以找到1.2版本? – user1271775 2012-07-18 02:15:37
看起來好像他們還沒有發佈1.2版本。 http://jquerymobile.com/blog/2012/01/10/upcoming-releases-1-0-1-1-1-and-beyond/ – RobB 2012-07-18 02:18:58
所以我可以做一個簡單的工作與$ .mobile罰款。 showPageLoadingMsg()請?因爲我把它和沒有加載味精出現,沒有錯誤apper。 – user1271775 2012-07-18 02:22:22