window.opener=null;
window.open( '','_self');
window.close();
比较简单 希望对一些朋友有用
本文提供了一段简单的JavaScript代码,用于实现网页窗口的关闭功能。通过设置window.opener为null并重新加载当前页面,最终调用window.close()来关闭当前窗口。
window.opener=null;
window.open( '','_self');
window.close();
比较简单 希望对一些朋友有用

被折叠的 条评论
为什么被折叠?