$("table input[type=checkbox]").attr("checked",true) 转载于:https://www.cnblogs.com/penghq/p/8205020.html