//防止页面后退
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
利用JS实现禁止浏览器后退返回上一页
猜你喜欢
转载自blog.csdn.net/zhichaosong/article/details/102954403
今日推荐
周排行