https://blog.csdn.net/arui_email/article/details/8490064
[javascript] view plain copy
- iframe弹出子页面刷新父页面iframe
- parent.location.reload();
[javascript] view plain copy
- 弹出子页面刷新
- window.opener.location.reload();
[javascript] view plain copy
- 子窗口刷新父窗口
- self.window.opener.locaction.reload();
[javascript] view plain copy
- 刷新一open()方法打开的窗口
- window.opener.location.href = window.opener.location.href
[javascript] view plain copy
- 刷新以winodw.showModelDialog()方法打开的窗口
- window.parent.dialogArguments.document.execCommand('Refresh');
- 或Response.Write("<script>window.location.href = window.location.href</script>");
[javascript] view plain copy
- 刷新本页
- Response.Write("<script>window.location.href=window.location.href; </script>");
[javascript] view plain copy
- 刷新父页和本页面:
- Response.Write("
- <script>alert('提交成功!');window.location.href=window.location.href;window.opener.location=window.opener.location;</script>
- ");
转自:https://blog.csdn.net/y13156556538/article/details/80237441
该博客主要介绍了JavaScript实现页面刷新的多种方法,包括iframe弹出子页面刷新父页面、弹出子页面刷新、子窗口刷新父窗口、刷新以不同方法打开的窗口以及刷新本页、父页和本页等,还给出了相应的代码示例。

1万+

被折叠的 条评论
为什么被折叠?



