Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Extjs 中有组合框
Ext.form.field.combobox
现在我希望如果有人选择选项 1 或 2 然后我显示另一个组合框并在选择其他选项时隐藏它
我怎样才能做到这一点
最初保持你的combobox2隐藏。
combobox2
在combobox1make 的选择侦听器中:
combobox1
if(combobox1.getValue() ==1 || combobox1.getValue() ==2) combobox2.show(); else combobox2.hide(); form.doLayout();