JQuery iframe 刷新效果

假如有一个选项卡.tab-content,里面有多个iframe

只刷新显示的那个iframe,所以要用到:visible

 

$('.tab-content iframe:visible')[0].contentWindow.location.reload();

 

 

如果页面只有一个iframe的话。

那就是

$('iframe')[0].contentWindow.location.reload();

posted @ 2014-10-25 15:37  MegaSu  阅读(380)  评论(0编辑  收藏  举报