mui---验证页面是否加载或显示

加载

var ws = plus.webview.getWebviewById(id)
ws.addEventListener( "loaded", function(e){
    console.log( "Loaded: "+e.target.getURL() );
}, false );

显示

var ws=plus.webview.currentWebview();
ws.addEventListener("show", function(e){
    console.log( "Webview Showed" );

猜你喜欢

转载自www.cnblogs.com/beast-king/p/9113890.html