function hf(){
var uu = document.getElementById("lm");
var ml = confirm("是否恢复类名?")
if(ml==true){
ml.removeAttribute("className")
}
}
这么做不对么,为什么恢复不了
应该用uu调用啊,节点调用方法。uu.removeAttribute()。ml是一个一个布尔类型的常量。