我们常用window.open弹出子窗口,有时候想要在子窗口中操作父窗口,这时候就需要用到window.opener。

例如下面一行js可以用来刷新父窗口:

window.opener.location.href=window.opener.location.href

 

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2021-11-14
  • 2021-09-17
  • 2022-02-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
相关资源
相似解决方案