$("#cb1").attr("checked","checked"); //通用做法,现在不推荐了
$("#cb1").attr("checked",true); //不标准,不推荐了
$("#cb1").attr("checked","true"); //不标准,不推荐了
$("#cb1").prop("checked",true); //标准写法,推荐!
$("#cb1").prop({checked:true}); //map键值对
$("#cb1").prop("checked",function(){
return true;//函数返回true或false
});