我正在尝试在我的应用程序中使用Childbrowser插件。我的代码如下:
ChildBrowser.prototype.showWebPage = function(url, options) {
options = options || {
showLocationBar: true,
locationBarAlign: "top"
};
//Code Runs up to this point
cordova.exec(this._onEvent, this._onError, "ChildBrowser", "showWebPage", [url, options]);
};代码的最后一行什么也不做。它没有给出任何错误,但网页没有显示。我使用的是Android 2.3。
发布于 2012-12-18 20:40:33
你似乎定义错了,我认为它应该是这样的:
var url = "http://www.google.com";
window.plugins.childBrowser.showWebPage( url, {showLocationBar: true});// This opens the webpage.我不太明白您为什么要使用ChildBrowser.prototype.showWebPage
https://stackoverflow.com/questions/13005659
复制相似问题