if(dataBack.remind){
$("#isremind").prop("checked",true);
}else{
$("#isremind").removeAttr("checked");
}
添加的时候用prop,取消用removeAttr。
问题解决了。
if(dataBack.remind){
$("#isremind").prop("checked",true);
}else{
$("#isremind").removeAttr("checked");
}
添加的时候用prop,取消用removeAttr。
问题解决了。
转载于:https://www.cnblogs.com/Tongjanghu/p/4788838.html