1:全選和全不選
function checkboxAdmincode(){
var messages = $('input[name=projectidCheckbox]');
for(var i = 0; i < messages.length; i++) {
if(messages[i].checked){
$("input[name='projectidCheckbox']").each(function() {
$(this).attr("checked", false);
});
return;
}else{
$("input[name='projectidCheckbox']").each(function() {
$(this).attr("checked", true);
});
return;
}
}
}