关闭标签页

try {
if (window.parent.location.origin === location.origin) {
 window.parent.postMessage({
 type: "CLOSE ACTIVE TAB",
}, window.location.origin);
}
} catch (error) {
 // do nothing
}

  

posted @ 2021-08-07 10:41  Kevin-lan  阅读(44)  评论(0)    收藏  举报