您的位置:首页 > Web前端 > JQuery

jquery 刷新iframe内容示例

2015-12-07 14:47 741 查看
<div id="dialog-download" title="报告下载" style="display: none">
<iframe id="comp-download" src="" style="overflow: visible;"
scrolling="yes" frameborder="no" width="100%" height="650"></iframe>
</div>
弹出对话框需要加载JS
		<link href="${ctxStatic}/jquery-ui-1.11.4/jquery-ui.css" rel="stylesheet" /><script src="${ctxStatic}/jquery-ui-1.11.4/jquery-ui.js" type="text/javascript"></script>
	function reportDownload(){$("#dialog-download").dialog({autoOpen: false,modal: true,width : 1280,height: 600,open: function(ev, ui){// 打开历史报告页面$('#comp-download').attr('src','path/projectReport/reportList?proId=${proId}');},close:function(ev,ui){$('#comp-iframe').attr('src','about:blank');try{$('#comp-download').contentWindow.document.write('');$('#comp-download').contentWindow.document.clear();}catch(e){}}});$('#dialog-download').dialog('open');};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: