cure = new Ext.ux.RadioGroup({
fieldLabel : '是否进行治疗',
name : 'cure',
xtype : 'radiogroup',// 表单文本框
horizontal : true,
maxLength : 2,
defaultValue : '1',
radios : getRadios(cureStore)
});
//不知道为什么cure.getValue()的值就是false
if (cure.getValue() == false) {
cureProject.on('select', function() {
if (cureProject.getValue().indexOf("9") >= 0) {
otherCure.setDisabled(false);
} else {
otherCure.setValue('');
otherCure.setDisabled(true);
}
});
}
为什么 cure.getValue() 不是1而是false。
没有模拟你的问题,试一试getGroupValue() 这个方法。
另外返回的值都是String的 建议用String来判断 ==“0”。试一试吧