1
{xtype : 'radiogroup',
items : [{
boxLabel : 'jjj',
name : 'tyutrfytr',
inputValue : 1,
checked : true
}, {
boxLabel : 'kkk',
name : 'dfdsfdsddd',
inputValue : 2,
listeners: {
check : function(cb, rec, ind) {
alert('hhhh');
}
}
}]
}
无论按下第一个选项还是第二个选项,上面的代码都给出alert
。不应该只在第二个选项被选中时才会提醒。如何聆听是否使用ExtJS检查单选按钮?