window.showModalDialog 窗口刷新本窗口

在html和body之间

<base target="_self"> 

随意添加一个链接

<a id="reload" href="本页面url" style="display:none"></a>

用js触发刷新

document.getElementById('reload').click();

猜你喜欢

转载自blog.csdn.net/wangyue4/article/details/129667094