标签: extjs extjs4.1 sencha-architect extjs4.2
有人能告诉我如何使用extjs中的combo itemId在控制器中获取所选值吗?
我试过这种方式:
Ext.getCmp('itemId').getValue(); //this is not working
由于
答案 0 :(得分:4)
请务必阅读文档。 getCmp()仅通过 id 查找组件。如果您想按itemId查找组件,请使用ComponentQuery或getComponent()。