js查询checkbox已选择的值 $("input[id^=ck]").each(function(index,e){ if($(e).is(":checked")) { userArray.push($(e).attr("value")); } });