Ext.form.field.ComboBox 切换store没有反应

来源:互联网 发布:属于淘宝禁售商品刀 编辑:程序博客网 时间:2024/04/28 03:31

遇到这种情况建议使用下面这个方法,可以有效避免上面的问题




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 or undefined passed), unbinds the existing store.

  • initial : Boolean (optional)

    True to not remove listeners from existing store.

    Defaults to: false