0

我正在将 android phonegap (v1.3) 应用程序移植到 ios。但坚持以下 loadUrl api,
PhoneGap.exec(null, null, "App", "loadUrl", [url, props]);
我无法为 IOS 找到与此类似的 api。
我可以使用 window.location.href,但这不能正常工作。:(
iOS Phonegap 中是否有类似的 Api?请帮助。

4

2 回答 2

0

我刚刚尝试了以下代码,它们都工作正常。

window.location="page.html";

window.location.href="page.html";

您所说的“工作不正常”是什么意思?

于 2012-02-19T14:08:29.233 回答
0

我建议您使用 PhoneGap/iOS 的 ChildBrowser 插件:https ://github.com/purplecabbage/phonegap-plugins/tree/master/iPhone/ChildBrowser

于 2012-02-19T18:21:08.073 回答