// 禁用浏览器的返回
window.history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
window.history.pushState(null, null, document.URL);
});
// 禁用浏览器的返回
window.history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
window.history.pushState(null, null, document.URL);
});
本文标题:禁用浏览器的返回功能
本文链接:https://www.haomeiwen.com/subject/woujxqtx.html
网友评论