extjs中的suspendLayouts、suspendEvents、resumeEvents、resumeLayouts;

suspendLayouts暂停布局   suspendEvents暂停事件

me.resumeEvents(); 恢复事件
Ext.resumeLayouts(true);恢复布局

在增加或移除很多记录时,需要暂停 store 的事件。否则的话,我们将会在每一条记录被修改时,在全部层中传递修改的事件。
grid.store.suspendEvents();
//do lots of updating
grid.store.resumeEvents();
grid.view.refresh()

* 树控件中重复的东西(他们与表格属于同一类的) 
  尽可能地合并多个层。如果你正在一个简单的操作中添加或删除一串的组件,可以像这样来做:
  Ext.suspendLayouts();
  //do a bunch of UI updates
  Ext.resumeLayouts(true);

原文地址:https://www.cnblogs.com/sanshengshitouhua/p/14377482.html