<script language="javascript">
          //防止页面后退
          history.pushState(null, null, document.URL);
          window.addEventListener('popstate', function () {
              history.pushState(null, null, document.URL);
          });
</script>

可以屏蔽鼠标和键盘的回退

posted on 2019-03-18 11:23  车车12138  阅读(2581)  评论(0编辑  收藏  举报