English version (ext ext-4.1.1)
Problem: In this case, the default combobox is required to display a fixed value, and the setValue (key) method is used to assign values. However, the key is displayed, instead of the value corresponding to the desired key.
Cause: js itself is of a weak type, but extjs distinguishes the types. Therefore, when setValue (key) is used, you must pay attention to the key data type in combobox. The premise of setValue () is that the data in combobox has been loaded. If there is no data in combobox, using setValue (key) will also directly display the key.
Solution: Before using setValue (key), 1 must ensure that there is correct data in combobox, 2: the data type of the hidden value (key) corresponding to combobox and setValue (key) the keys in are of the same type. 123 and '123' are not equal in the setValue () method of ext.