我们用js的close()方法关闭窗口时,总会弹出关闭提示,刚刚找到了直接关闭的方法。

方法如下:

<script>
  window.opener.location.href
=window.opener.location.href; 
  window.opener
=null
  window.open(
'','_self'); 
  window.close();
</script>

 

相关文章:

  • 2021-07-10
  • 2022-01-18
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2021-08-03
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案