var wv=plus.webview.currentWebview();
wv.addEventListener("popGesture", function(e){
if (e.type == 'end') {
if (e.result) {
console.log('返回');
}else{
console.log('取消');
}
}
}, false );
上面的方法,如果侧滑成功以后,e.type是空的,e.result也是空的,无法判断
var wv=plus.webview.currentWebview();
wv.addEventListener("popGesture", function(e){
if (e.type == 'end') {
if (e.result) {
console.log('返回');
}else{
console.log('取消');
}
}
}, false );
上面的方法,如果侧滑成功以后,e.type是空的,e.result也是空的,无法判断
0 个回复