window.top.opener=null;
window.top.open('','_top');//top当前最顶层窗口、self表示当前打开的窗口
window.top.close();

作用于iframe嵌套页面,window.close()无效的情况。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-06-21
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案