jQuery Mobile を使用して読み込み中のメッセージを表示するだけで 5 時間かかりました。代わりに、私は得ています:
キャッチされていない TypeError: オブジェクト #<Object> にはメソッド '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>