遇到这种情况建议使用下面这个方法,可以有效避免上面的问题
bindStore(
[Ext.data.AbstractStore/String store], [Boolean initial] )
Binds a store to this instance.
Parameters
- store : Ext.data.AbstractStore/String (optional)
The store to bind or ID of the store. When no store given (or when
null
orundefined
passed), unbinds the existing store. - initial : Boolean (optional)
True to not remove listeners from existing store.
Defaults to:
false