for(var i=0; i<li.length; i++){
li[i].index = i;
li[i].onclick = function(){
for(var n=0;n<li.length;n++){
li[n].className = "";
div[n].className = "hide";
}
this.className = "on";
div[this.index].className = "";
}
}
this.className = "on"; 中的this是不是指“li[i]”呢?为啥用不了“li[i]”代替?
千秋此意