将index.html重定向到phonegap项目的iOS设置(Settings.bundle中的URL)
我是phonegap和iPhone开发的新手,我正在尝试让phonegap的index.html重定向到位于外部基于设置的URL的JQuery Mobile站点,该URL位于我的Settings.bundle、Root.plist、服务器URL中。我的 index.html 页面重定向到 index.html 文件中的硬编码服务器,但如何让它转到我的应用程序设置中的 URL?
预先感谢您为我指明正确方向的任何帮助
I am new to phonegap and iPhone development, and am trying to get phonegap's index.html to redirect to a JQuery Mobile site that is located externally at a settings based URL which I have in my Settings.bundle, Root.plist, Server URL. I have my index.html page redirecting to a hard coded server in the index.html file, but how do I get it to go to the URL that I have in my application settings?
Thanks in advance for any help in steering me in the right direction
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在尝试让插件 applicationPreferences 正常工作做类似的事情。目前无济于事。一旦我想出解决方案,我会再次在这里发布一些内容。
更新
这看起来确实有效。自述文件示例中有一个几乎无法察觉的小错误。
“homer”后面需要有一个逗号。
I've been trying to get the plugin applicationPreferences working to essentially do something similar. Currently to no avail. As soon as I come up with a solution I will post something here again.
UPDATE
This does work it seems. There is a small, nearly unnoticeable error in the readme example.
There needs to be a comma after the 'homer'.