标签:app ack hbuilder back document builder UNC event else
在所有需要返回的界面添加如下代码即可
$(function(){ document.addEventListener(‘plusready‘,function(){ var webview = plus.webview.currentWebview(); plus.key.addEventListener(‘backbutton‘, function() { webview.canBack(function(e) { if (e.canBack) { webview.back(); } else { webview.close();//hide,quit } }) }); });
处理Hbuilder H5页面打包APP 返回直接退出的问题
标签:app ack hbuilder back document builder UNC event else
原文地址:https://www.cnblogs.com/xuanjiange/p/12503496.html