history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
js禁用浏览器后退
禁用浏览器后退按钮
最新推荐文章于 2024-06-23 04:15:59 发布
禁用浏览器后退按钮
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
406
558

被折叠的 条评论
为什么被折叠?