js禁用后退

来源:互联网 发布:理解大数据 编辑:程序博客网 时间:2024/04/30 01:34
history.pushState(null, null, document.URL);
         window.addEventListener('popstate', function() {
            history.pushState(null, null, document.URL);

0 0
原创粉丝点击