场景:弹框关闭后,执行业务逻辑
let winObj = window.open('https://www.baidu.com','','width=1250,height=600,status=0,toolbar=0');
let loop = setInterval(() => {
if (winObj.closed) {
clearInterval(loop);
console.log(111);
}
}, 1000);