gpt4 book ai didi

android - Cordova(或 phonegap)android 应用加载了 index.html 两次

转载 作者:行者123 更新时间:2023-11-30 02:47:45 24 4
gpt4 key购买 nike

我在使用 Cordova(或 phonegap)Android 应用程序时遇到了 2 周的麻烦,包装的 apk 加载了 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.

谁能帮帮我,非常感谢,好迷茫。

最佳答案

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

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

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

关于android - Cordova(或 phonegap)android 应用加载了 index.html 两次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24736108/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com