iframe重新加载

方法1:

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

方法2:

document.getElementById('iframeId').src=url;

方法3:

$("#iframeId").attr('src', url);

总结:网上一大堆document.frames('ifrmname').location.reload()已经不能用了!

原文地址:https://www.cnblogs.com/super-yu/p/9045775.html