刷新iframe页面

一定要注意要刷新的iframe页面与当前页面(编写代码)的关系,同级,父级

如下图,在【database_box】中刷新【header】,代码为:
window.parent.parent.document.getElementById(‘header’).contentWindow.location.reload(true);
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_38949960/article/details/89181380