var?gettr?=?document.getElementsByTagName('tr');
//alert(gettr[0]);
for?(var?i?=?0;i?<?gettr.length;i++){
????gettr[i].onmouseover?=?function(){
????????this.style.backgroundColor?=?"blue";
????};
????gettr[i].onmouseout?=?function?()?{
????????this.style.backgroundColor?=?"#fff";
????}
}為什么this不能用gettr[i]代替
哈哈哈哈哈
西蘭花偉大炮
2017-04-16 22:10:44