$('body').on("click","tr",function(){
if ($(this).find(":checkbox").prop("checked")) {//// 此处要用prop不能用attr,至于为什么你测试一下就知道了
$(this).find(":checkbox").removeAttr("checked");
}else{
$(this).find(":checkbox").prop("checked", true);
}
});