一、JS实现关闭当前子窗口,刷新父窗口
JS代码如下:
<script>
function refreshParent() {
window.opener.location.href = window.opener.location.href;
window.close();
}
</script>
时间: 2024-12-13 09:49:11
一、JS实现关闭当前子窗口,刷新父窗口
JS代码如下:
<script>
function refreshParent() {
window.opener.location.href = window.opener.location.href;
window.close();
}
</script>