使用 'name' 属性时,如何在 Ext JS 3 中检查复选框是否被选中
How to check whether a checkbox is checked or not in Ext JS 3 when 'name' attribute is used
我在 Ext JS 中创建了复选框。当使用 'id' 属性定义时,我能够检查它是否被选中,但这会导致不同的功能失败。
当使用 'name' 属性而不是 'id' 属性创建这些复选框时,我想检查复选框是否被选中。
请帮帮我
您可以使用 ref 属性而不是 id - http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.Component-cfg-ref
我在 Ext JS 中创建了复选框。当使用 'id' 属性定义时,我能够检查它是否被选中,但这会导致不同的功能失败。
当使用 'name' 属性而不是 'id' 属性创建这些复选框时,我想检查复选框是否被选中。
请帮帮我
您可以使用 ref 属性而不是 id - http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.Component-cfg-ref