您现在的位置是:首页 > 电脑技术查询 > web开发

extjs如何一次性把表单中的元素disabled设置为true

编辑:chaxungu时间:2022-10-02 23:16:12分类:web开发

extjs怎么一次性把表单中的元素disabled设置为true
inputForm.getForm().findField('customerCode').setDisabled(true);
这样是可以,
但是使用了 inputForm.getForm().getFields(),然后循环给里面的item设置,就报错。


------解决方案--------------------
代码多贴点出来呀。。把你要循环的页面代码贴出来。得到多个首先name要一样。才能取到。