很简单,请使用这段代码:
<a href="#" onclick="window.opener=null;window.open('','_self');window.close();">不确认关闭 </a>
也就是在window.opener=null;window.close()之间加入window.open('','_self');
就OK了!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2021-11-27
  • 2021-07-10
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案