最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

mui确定要离开当前页面吗?, 温馨提示, [取消, 确定]

IT圈 admin 58浏览 0评论

mui 确定要离开当前页面吗?, 温馨提示, [取消, 确定]

文档:
mui-col-xs-9

window.addEventListener('popstate', function (e) {  //popstate 该事件在窗口的浏览历史(history 对象)发生改变时触发。mui.confirm("确定要离开当前页面吗?", "温馨提示", ["取消", "确定"], function (e) {if (e.index == 1) {window.history.go(-1);} else {history.pushState(null, null, document.URL);}});});

mui 确定要离开当前页面吗?, 温馨提示, [取消, 确定]

文档:
mui-col-xs-9

window.addEventListener('popstate', function (e) {  //popstate 该事件在窗口的浏览历史(history 对象)发生改变时触发。mui.confirm("确定要离开当前页面吗?", "温馨提示", ["取消", "确定"], function (e) {if (e.index == 1) {window.history.go(-1);} else {history.pushState(null, null, document.URL);}});});
发布评论

评论列表 (0)

  1. 暂无评论