阻止某一个界面不能使用浏览器的后台按钮的方法
activated () {
    history.pushState(null, null, document.URL);
    window.addEventListener('popstate', function () {
      history.pushState(null, null, document.URL);
    });
}

 

posted on 2020-04-24 13:50  鄢宁  阅读(2847)  评论(0编辑  收藏  举报