0

每次我点击 jQuery Mobile 链接时,我的应用程序都会做正确的事情并导航到选择页面,但是当我在 iPhone 模拟器中运行时,它也会在 Mobile Safari 中启动该页面的副本。我确定我只是缺少一些配置设置。

这是我的mobileinit函数

$(document).bind('mobileinit', () -> 
  $.mobile.allowCrossDomainPages = true
)

而且我已经修改了ExternalHosts数组以Cordova.plist将我的应用服务器的域名列入白名单。我错过了什么?

4

1 回答 1

1

我有同样的问题。这个解决方案工作正常。

http://moduscreate.com/opening-all-urls-with-phonegaps-childbrowser-plugin/

于 2012-10-19T08:18:21.770 回答