0

私は、JonathanStarkのHTML、CSS、およびJavaScriptを使用したiPhoneアプリの構築の演習を読んでフォローしていました。

エラーコンソールでエラーが発生しましたが、修正方法がわかりません。

Could not find an element with the id "jqt", so the body id has been set to "jqt". If you are having any problems, wrapping your panels in a div with the id "jqt" might help.  jqtouch.js:104

jQTouchb3.1を使用しています

助けてください
ありがとう〜

4

1 に答える 1

0

これは、エラーというよりは警告のように思えます。本にあるものよりも新しいバージョンのjQTouchを使用していると思われます。以前のバージョンのjQTにはbody、たとえば、

<body>
  <div id="page1"></div>
  <div id="page2"></div>
</body>

ただし、jQTの新しいバージョンでは、の下div#jqtにページがあるため、タブバーコントロールなどの固定ナビゲーションバーを含めることができます。

<body>
  <div id="jqt">
    <div id="page1"></div>
    <div id="page2"></div>
  </div>
  <!-- you could have something fixed navigation element here -->
</body>
于 2011-08-14T22:47:08.447 に答える