代码如下,很简单的一个例子,添加页面加载事件,打印结果如下:
Loaded: undefined at index.html:20
mui.plusReady(function() {
var sub = plus.webview.create('test.html', 'test.html');
sub.addEventListener( "loaded", function(e){
console.log( "Loaded: "+e.target );
}, false );
});
0 个回复