function plusReadyforPage(){
var nowView = plus.webview.currentWebview();
console.log( "窗口ID:"+nowView.id ); <-这个有值
console.log( "窗口URL:"+nowView.getURL() ); <----这个除非除非在联机保存时刷新才跳出值
}
if(window.plus){
plusReadyforPage();
}else{
document.addEventListener('plusready', plusReadyforPage, false);
}
貌似android下都好用,但是ios下 ,getURL() 返回空值。
尼古拉斯炒饭 (作者)
谢谢
2018-01-02 18:38