且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

刷新标签中的iframe,调用iframe中的函数

更新时间:2022-08-17 16:33:51

if(Ext.isIE){
if(parent.document.frames[id].document.getElementById("graphContainer") != null){
//parent.document.frames[id].document.location.reload(); /*刷新页面法,体验不好,取消*/
parent.document.frames[id].run(); /*调用页面中的run函数,流程页面中必须有此函数*/
}
}else{
if(document.getElementById(id).contentDocument.getElementById("graphContainer") != null){
//document.getElementById(id).contentDocument.location.reload(true); 
document.getElementById(id).contentWindow.run();