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.
精彩评论