jquery--checkbox全选
//挂全选事件-系统权限$('#sysPowerAll').click(function(){if($('#sysPowerAll').attr("checked")==true){$("input[name='sysPower']").attr("checked",true); }else{$("input[name='sysPower']").attr("checked",false); }});$("input[name='sysPower']").click(function(){if($(this).attr("checked")==false){$('#sysPowerAll').attr("checked",false)}});
?