记录一下,dojo tabContainer 引入 iframe的方法
lang.setObject("demo.addTabiFrame",function(tabContainer,href,title,closable){ if (typeof tabContainer === "string"){ tabContainer = registry.byId(tabContainer); } var tabName = "tab" + demo.basename(href,".action"),tab = registry.byId(tabName); console.log(tabName); if (typeof tab === "undefined"){ tab = new ContentPane({ id: tabName,title: title,closable: closable,executeScripts:true,style: "padding: 0;" }); tab.setContent(" <iframe style='width:100%;height:100%;border:1px' border=1 src='"+href+"'></iframe>"); tabContainer.addChild(tab); } tabContainer.selectChild(tab); }); 原文链接:https://www.f2er.com/dojo/291042.html