开发者

multiple HTML in Phonegap applications

Can we have multiple HTML files in Phonegap applicatio开发者_运维百科n?


Yes, you can. Here's an example from their git repo: http://github.com/phonegap/phonegap-iphone/blob/master/PhoneGapTutorial/www/index.html

  <a href="geolocation.html">
    <div class="item">
      <h2>GeoLocation</h2>
     </div>
  </a>


Definitely. Just link to it from your html (anchor tag), and the html file should be in your www folder. Don't forget to add "phonegap.js" in a script tag like your index.html file if you want to access Phonegap functions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜