刷新局部iframe

document.getElementById('FrameID').contentWindow.location.reload(true);  

如果没有使用ID则先获取到当前 iframe 并找到其对象刷新 例

var iframe = document.getElementsByTagName('iframe')[i];
var ifr_document = iframe.contentWindow.document;
   ifr_document.location.reload();


猜你喜欢

转载自blog.csdn.net/q15642/article/details/78802824
今日推荐