javascript 禁用浏览器的回退按钮


<script>
    history.pushState(null, null, document.URL);
    window.addEventListener("popstate", function(){
        history.pushState(null, null, document.URL);
    })
</script>

猜你喜欢

转载自blog.csdn.net/qq_15652607/article/details/82840288
今日推荐