使用javascript方法window.history.replaceState来阻止重新提交刷新和后退按钮

<script>
    if ( window.history.replaceState ) {
        window.history.replaceState( null, null, window.location.href );
    }
</script> 
posted @ 2020-06-22 11:03  一曲风月  阅读(4642)  评论(1)    收藏  举报