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 @ 2018-05-16 14:16  Super丶丨蔚  阅读(13549)  评论(0编辑  收藏  举报