可以这么写

可以这样写var all_c $$(input[typecheckbox][nameobjs_com]).select(function(i){return i.che

可以这样写

  var all_c = $$('input[type="checkbox"][name="objs_com"]').select(function(i){    return i.checked  }).collect(function(i){    return i.value;  }).join(',');

  var entity = $('object_entity');  entity.onchange = change_color;  // 会破坏原来的onchage事件  // entity.observer('change',function(event){  //  alert(2);  //});