【问题标题】:ajax navigation error when using phonegap and ran locally使用phonegap并在本地运行时出现ajax导航错误
【发布时间】:2012-06-29 05:23:38
【问题描述】:

对于完整的新手问题,我很抱歉,但我运气不佳。 我已经使用 phonegap 插件通过 eclipse 创建了一个项目,并将其作为 android 应用程序部署到平板电脑上以在本地运行 - 但我得到了“注意:如果在本地查看,导航可能无法工作”栏被添加到底部页面。 我该如何解决这个问题?我想如果它以这种格式打包,我就不必在平板电脑上安装安卓网络服务器并通过浏览器运行它? 非常感谢所有指导。

【问题讨论】:

  • Android 上不需要网络服务器,出于安全考虑,这仅适用于桌面浏览器(您仍然可以通过--disable-web-security 浏览器开关省略)您可以输入更多信息,例如 phonegap 版本、android 版本??
  • cardova1.8.1, android-sdk_r18-windows, 我正在使用 chrome 如何更改禁用-web-security
  • 在windows上,右键单击chrome快捷方式,转到属性,在目标文本字段中附加这些--allow-file-access-from-files --disable-web-security
  • 在mac中,在终端中用这个命令打开chrome,open -a Google\ Chrome --args --disable-web-security
  • 我在 windows xp 中使用 chrome,我无法附加 --allow-file-access-from-files --disable-web-security,我尝试使用“C:\Documents”添加它和 Settings\rew\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" 但它说确保路径存在

标签: android cordova android-emulator


【解决方案1】:

我遇到了同样的错误,结果发现 jquery.mobile 被包含两次。删除孪生参考会导致删除注释。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-28
    • 2019-02-18
    • 1970-01-01
    • 1970-01-01
    • 2016-06-20
    • 2020-10-05
    • 2018-07-11
    相关资源
    最近更新 更多