ext.js中,如果动态像页面添加元素,导致性能低,可以这样做:
Ext.suspendLayouts();
//这里添加元素
Ext.resumeLayouts(true);
这样只用layout一次,效率会高很多,尤其是添加的元素很多的时候。