添加
document.getElementById("jiandtbtn_"+id).className = "done_yes";
删除
var classVal = document.getElementById("jiandtbtn_"+id).getAttribute("class");
classVal = classVal.replace("done_yes",""); document.getElementById("jiandtbtn_"+id).setAttribute("class",classVal );