Click the button in Figure 1 and execute the following code to display the new webview:
$('#w_menu').on('tap', function() {
if(window.plus){
// 打开弹出层
plus.webview.show(menuWebview,"slide-in-bottom",1500);
}else{
mui.alert("请在html5+引擎环境使用");
}
return;
});
But after clicking the button in Figure 1, the webview in Figure 2 will appear after a delay. That is to say, after the tap event is executed, the show method of the webview is not executed immediately. Why is this?
There is a delay in communication between webview and native.