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()已经不能用了!

posted @ 2021-01-07 19:00  zda龙  阅读(541)  评论(0)    收藏  举报