监听页面显示:webview.addEventListener('show', function() {});
自定义事件: document.addEventListener('hide', function() {});
触发自定义事件:mui.fire(Webview,'hide');
原型 :
$.fire = function(webview, eventType, data) {
if (webview) {
webview.evalJS("typeof mui!=='undefined'&&mui.receive('" + eventType + "','" + JSON.stringify(data || {}).replace(/\'/g, "\\u0027").replace(/\\/g, "\\u005c") + "')");
}
};