js 获取选中checkbox的value值

var value = new Array();
for(var i = 0; i < obj.length; i++){
    if(obj[i].checked)
        value.push(obj[i].value);
}