mui.plusReady(function() {
var page = mui.preload({
url:'mem.html',
id:'mem'
});
var webviewob=plus.webview.getWebviewById('mem');
console.log(webviewob);console.log(JSON.stringify(webviewob));
//可以输出object
// {"__view_array__":[],"__IDENTITY__":"NWindow","__uuid__":"NWindow51461554098126","__callbacks__":{},"__callback_id__":"plus61461556157904","id":"mem","preload":true}
console.log(webviewob.reload());
//输出结果却为undefind
})
页面预加载好了,但Webview窗口对象使用reload、getURL等方法都无效,
请问这是哪里有问题吗?怎么解决?
火岚 (作者)
同样输出undefind。。不过还是谢谢啦
2016-04-25 15:39