我想问下as[i].num=i这里的num是干什么的?第一次见
for(var i=0; i<as.length; i++){
as[i].num = i
as[i].onmouseover = function(){
this.style.background = '#ccc'
index = as[i].num-1;
}
for(var i=0; i<as.length; i++){
as[i].num = i
as[i].onmouseover = function(){
this.style.background = '#ccc'
index = as[i].num-1;
}
2016-04-15
举报