window.opener.location.reload();
下面的代码可以放在子窗口的任何地方,当子窗口关闭的时候,就会自动刷新父窗口
<script language="javascript"> window.onunload = function(){ window.opener.location.reload(); } </script>
Powered by: 博客园 Copyright © 2024 LonelyStar Powered by .NET 9.0 on Kubernetes