prototype
共 1 篇文章
可以这样写
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); //});
2010-08-10 11:57 · prototype · C · C++ · C# · JavaScript