1.定义rg

var rg = new Ext.form.RadioGroup({
            fieldLabel : "test",
            items : [{
                boxLabel : '每天',
                inputValue : "1",
                name : "rg"
            }, {
                boxLabel : '一次',
                name : "rg",
                inputValue : "2"
            }]
        });     

2.赋值

rg.setValue({rg: "2"});//一次被选中

rg.setValue({rg: "1"});//每天被选中

 

3.取值

rg.getValue().rg

 

相关文章:

  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2021-08-03
  • 2021-11-21
猜你喜欢
  • 2021-11-08
  • 2021-12-22
  • 2022-12-23
  • 2021-08-27
  • 2022-01-08
相关资源
相似解决方案