var trs = document.getElementsByTagName('tr');
for(var i = 0;i < trs.length;i++){
trs[i].onmouseover = function(){
this.style.backgroundColor = 'grey';
}
trs[i].onmouseout = function(){
this.style.backgroundColor = 'white';
}
}
请问函数中的this为什么不能换成trs[i]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…