📜  如何在 js 中返回旧选项卡关闭新选项卡 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:07.007000             🧑  作者: Mango

代码示例1
localStorage.setItem('isRealdAble','false');
function gCFRTP() {
    setInterval(() => {
        var isReloading = localStorage.getItem('isRealdAble');
        if(isReloading=='true'){
            window.location.href = window.location.href;
        }
    }, 2000);
}