JS实现关闭当前子窗口,刷新父窗口

js代码:

function refreshParent() {
  window.opener.location.href = window.opener.location.href;
  window.close();  
 }     
原文地址:https://www.cnblogs.com/ningvsban/p/3042790.html