如何监听浏览器回退事件

history.pushState(null, null, document.URL);
window.addEventListener("popstate", watchPopEvent,false)
posted @ 2022-03-18 14:26  前端销纸  阅读(134)  评论(0编辑  收藏  举报