在 console 中弹出提示"Scripts may close only the windows that were opened by it" (脚本只能关闭它所打开的窗口)
網上找的下面代碼也沒用.求助
try{
this.focus();
self.opener = this;
self.close();
}
catch(e){
}
try{
window.open('','_self','');
window.close();
}
catch(e){
}