添加onmouseover和onmouseout事件相关问题
trs[i].onmouseover = function(){
this.style.backgroundColor ="#f2f2f2";
}
trs[i].onmouseout = function(){
this.style.backgroundColor ="#fff";
}
为什么其中的this换成trs[i]就不能实现????
trs[i].onmouseover = function(){
this.style.backgroundColor ="#f2f2f2";
}
trs[i].onmouseout = function(){
this.style.backgroundColor ="#fff";
}
为什么其中的this换成trs[i]就不能实现????
2014-12-24
举报