1 var radioGroup = new Ext.form.RadioGroup({ 2 width: 130, 3 id: 'selected', 4 layout: 'form', 5 items: [{ 6 name: 'orders', 7 inputValue: '0', 8 boxLabel: '订单统计', 9 checked: true 10 }, { 11 name: 'orders', 12 inputValue: '1', 13 boxLabel: '公司统计' 14 }, { 15 name: 'orders', 16 inputValue: '2', 17 boxLabel: '员工统计' 18 }], 19 listeners : { 20 'change': function() { 21 //这里可以显示单选按钮的选中值 22 console.dir(Ext.getCmp('selected').lastValue.orders); 23 } 24 } 25 });