//全选
function chooseAllsla(_obj){
var tableObj = $(_obj).closest("table");
var isChecked = $(_obj).attr("checked");
$(tableObj).find(":input[type='checkbox']").not(":first").each(function(){
if(isChecked){
$(this).attr("checked",true);
}else{
$(this).removeAttr("checked");
}
});
}
转载于:https://my.oschina.net/liujiawan/blog/506280