$(".zxlogin").on('tap', function() { var btnArray = ['离开我', '陪着我']; mui.confirm('真的要离开人家吗?', '中微直供', btnArray, function(e) { if (e.index == 0) { localStorage.clear(); //清除本地缓存 plus.runtime.restart(); //重启app } else { mui.toast("我们继续玩耍吧!"); } }) });
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号