待webview页面加载完毕后,进行show显示,过早show()页面未加载完,是空白页。

show_webView(){
                var nwating = plus.nativeUI.showWaiting();
                var w=plus.webview.create(this.path,'webviewId',{height: '93%'},{preload:'preload webview'});
                w.addEventListener('loaded', function() {
                    nwating.close();
                    w.show();
                }, false);
            }

更多推荐