【javascript】h5页面禁止返回上一页
时间:2019-12-17 11:46:13
收藏:0
阅读:847
window.history.pushState("","","#"); window.addEventListener("popstate",function(e){ window.location.href = location.href;//这里指定你要跳转的页面 }
原文:https://www.cnblogs.com/ivan5277/p/12053407.html
评论(0)