extjs中checkbox选中与不选中设置

修改checkbox的状态有两种方式

在组件生成时就设置:

          checked:true;//选中,默认为false,即不选中

在组件生成后设置:

          form.findField('jsgl').setValue(true);//选中

          form.findField('jsgl').setValue(false);//不选中

猜你喜欢

转载自blog.csdn.net/chenmin_test/article/details/84141955