为什么在这里用setAttribute改变不了属性,求解答
oLis[n].setAtribute=("classname",""); oDivs[n].setAtribute=("classname","hide"); this.setAtribute=("classname","on"); oDivs[this.index].setAtribute=("classname","");
这样为什么就不能替代
oLis[n].className = ""; oDivs[n].className = "hide"; this.className = "on"; oDivs[this.index].className = "";
求各位大神解答一下,用setAttribute死活改变不了