📌  相关文章
📜  window.location.href 中断按钮 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:38.848000             🧑  作者: Mango

代码示例1
// Fixes back button issue when using history.pushState();
window.onpopstate = e => {
    window.location = location.href;
};