2014-07-14 72 views
1

我有一个与科尔多瓦(或phonegap)Android应用程序2周加紧包裹的apk加载index.html两次(两个页面重叠),然后事件exuted也是两次。科尔多瓦(或phonegap)Android应用程序加载index.html两次

细节:

1. I disigned a html5 page with contruct2 in which touch a image then alert "Ok"; 
2. I exported the project to android or phonegap 

3. I wrapped it with CLI of crosswalk,it works fine; 
4. I wrapped it with XDK,it works fine too; 

5.I dont like these above two tools,apk size is too big; 

6.I wrapped it(pages exported android or pages exported phonegap) 
    with CLI of cordova and CLI of Phonegap ,all fine except but the index.html 
    was loaded twice (the two pages overlap) and when touched the image, it alert twice. 

能某人帮助我,非常感谢,很困惑。

回答

1

这似乎发生在我身上也。我知道这听起来很疯狂,但是你碰巧在你的脚本标签之间有一个空格吗?

<script src="phonegap.js"> </script> 

我删除了空格,并停止了复制。

相关问题