JS实现关闭当前子窗口,刷新父窗口 js代码: function refreshParent() { window.opener.location.href = window.opener.location.href; window.close(); }