https://www.cnblogs.com/Easty/p/7820055.html
//禁止页面后退
history.pushState(null,null,document.URL);
window.addEventListener('popstate',function(){
//监听浏览器的返回事件
history.pushState(null,null,document.URL);
});
https://www.cnblogs.com/Easty/p/7820055.html
//禁止页面后退
history.pushState(null,null,document.URL);
window.addEventListener('popstate',function(){
//监听浏览器的返回事件
history.pushState(null,null,document.URL);
});