52,792
社区成员




var newTab = centerPanel.add(new Ext.Panel({
id : tabId,
title : tabTitle,
iconCls : "treeNodeLeafIcon",
layout : 'fit',
border : false,
closable : true,
listeners : {
activate : this.onActiveTabSize,
scope : this
},
items : {
html : "<iframe width=\"100%\" height=\"100%\" scrolling=\"auto\" frameborder=\"0\" src=\""+_link+"\" ></iframe>"
}
}));
如果id没有必须的用途,就不需要为组件添加id
如果id一旦重复就会造成组件显示问题或是出现js冲突