简体   繁体   English

在Ext JS中,如何获取组合框项目索引的值?

[英]In Ext JS, how to get the value of the combo box item index?

if we know the index of the combo box item, how do we get the value of it in ext js? 如果我们知道组合框项目的索引,我们如何在ext js中获取它的值? Thank you 谢谢

如果我们知道该项目的索引,并且假设valueFieldid设置为combobox ,我们可以像下面这样找到它:

comboBox.getStore().getAt(3).get('id'); // assuming `index = 3`

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM