1、直接关闭
window.close();
2、关闭并提示
window.opener = null; window.close();
1、关闭不提示
window.opener = null; window.open("", "_self"); window.close();
window.close();
window.opener = null; window.close();
window.opener = null; window.open("", "_self"); window.close();