$(".checkboxs_yy").click(function(){
if($(this).attr("checked")==true){
console.log("选中");
}else{
console.log("未选中");
}
});
.checkboxs_yy是一个复选框,我想让在选中时触发一个时间,不选中时触发另外一个事件,为何我写的这个一直是未选中,应该怎么改
相关分类