history.pushState(null, null, document.URL);
window.addEventListener('popstate',function(e) {
console.log(e);
window.location.href = '';
}, false);
js监控返回按钮
最新推荐文章于 2024-01-20 18:47:05 发布
history.pushState(null, null, document.URL);
window.addEventListener('popstate',function(e) {
console.log(e);
window.location.href = '';
}, false);