Jquery 乔纳森·斯塔克书中的练习题

Jquery 乔纳森·斯塔克书中的练习题,jquery,ios,jqtouch,web-applications,iphone-web-app,Jquery,Ios,Jqtouch,Web Applications,Iphone Web App,我在乔纳森·斯塔克的书里读书,跟着练习 我在错误控制台中有一些错误,但我不知道如何修复它 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 我正在使用jQTouch

我在乔纳森·斯塔克的书里读书,跟着练习

我在错误控制台中有一些错误,但我不知道如何修复它

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
我正在使用jQTouch b3.1

请帮忙
谢谢~

这看起来更像是警告而不是错误。我怀疑你使用的jQTouch版本比书中的版本要晚。jQT的早期版本在正文的正下方有页面,例如


谢谢看起来好像有用。我用一个jqt div标签将整个部分包装起来!你需要为此贴一个单独的问题,因为它的完成与你所问的不同…顺便说一句,如果我回答了你的问题,你可能会想相应地标记它,这样对提问者和回答者都有好处。
<body>
  <div id="page1"></div>
  <div id="page2"></div>
</body>
<body>
  <div id="jqt">
    <div id="page1"></div>
    <div id="page2"></div>
  </div>
  <!-- you could have something fixed navigation element here -->
</body>