全选所有checkbox

$("table input[type=checkbox]").attr("checked",true)

原文地址:https://www.cnblogs.com/penghq/p/8205020.html