Home  >  Q&A  >  body text

html5 - There is a delay in the show method of webview in h5+



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?

某草草某草草2710 days ago1032

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-18 10:53:36

    There is a delay in communication between webview and native.

    reply
    0
  • Cancelreply