jQuery方式for(var i =0;i<$("input[type='checkbox']").length;i++){ if($("input[type='checkbox']").eq(i).is(':checked')){ }}