在PhoneGap开发时,出现在跳转页面的时候会出现:Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html).
解决方法:
将页面跳转的超链接
<a href="homepage.html">···</a>
改为:
<a onclick="javascript:window.location.href='homepage.html'">···</a>
本文介绍了在使用PhoneGap进行跨平台应用开发时,遇到页面跳转出现‘ApplicationError-The connection to the server was unsuccessful’错误的解决方法。通过将页面跳转的超链接修改为javascript调用方式,可以有效解决服务器连接失败的问题。
1054

被折叠的 条评论
为什么被折叠?



