Ext.override(Ext.form.CheckboxGroup,{
setValueForItem : function(val){ //多个选项值以逗号分开的 val = ","+val+"," this.items.each(function(item) { if (val.indexOf(item.inputValue) > -1) { item.setValue(true); } else { item.setValue(false); } }); } ,clearValueForItem:function(){ // 清空所有值 this.items.each(function(item) { item.setValue(false); }); } });
补充:网页制作,js教程
上一个:ext combox 下拉框不出现自动提示解决方法下一个:电话手机正则表达式