不支持

离开页面之前提示,关闭,刷新等

window.onbeforeunload = function (e) {
        var e = window.event || e;
        e.returnValue = ("确定离开当前页面吗?");
    }
posted @ 2019-12-09 15:06  骑上我的小摩托  阅读(120)  评论(0编辑  收藏  举报