原有extjs中的Ext.form.ComboBox控件功能是从数据库中读取列表。绑定到Ext.form.ComboBox控件上。
在做修改时,需要根据值设定Ext.form.ComboBox 控件的选择项。原来在4.0下可以正常选中。升级到4.07后,发现无法选中项。把数值显示在下拉框中了。
找了一个下午,发现原来是model中定义的值为字符型,而Ext.form.ComboBox 列表的值是数字型。从而导至Ext.form.ComboBox不会选中。
看来extjs 4.07 对类型比较要求更严格了。必需是同类型才能进行比较,否则不能比较。
修改为同一类型,正常收工:)