除了隐藏和关闭有效果 其他的要么提示Uncaught ReferenceError: plus is not defined要么没效果 ps:在另外一个页面预加载这个页面
mui.init();
mui.plusReady(function() {
var thisv=plus.webview.currentWebview();
thisv.addEventListener("close",function(){
alert(" close");
});
thisv.addEventListener("hide",function(){
alert(" hide");
});
thisv.addEventListener("loading",function(){
alert("loading");
});
thisv.addEventListener("loaded",function(){
alert(" loaded"+thisv.getURL());
});
thisv.addEventListener("show",function(){
alert(" show ");
});
});
0 个回复