我正在用InAppBrowser加载一个外部页面,似乎在Android上都没有启动loadstart和loadstop。我的代码:
var ref = window.open(url, '_blank', 'location=yes;');
ref.addEventListener('loadstart', function() {
console.log('loadstart!');
console.log(event.url);
});发布于 2013-06-03 05:02:44
几个检查就能帮你解决这个问题。
// Platform:在res/xml/config.xml中android
你真的需要像在示例文件中一样包含onDeviceReady,这对我来说很管用。
document.addEventListener('deviceready',app.onDeviceReady,false);
https://stackoverflow.com/questions/16865723
复制相似问题