为什么我在 var r = document.createElement("tr");这一行下面写r=change(r);就不行,写成
r.setAttribute("onmouseover","this.style.backgroundColor='#ccc'");
r.setAttribute("onmouseout","this.style.backgroundColor='white'");
就可以了呢?
为什么我在 var r = document.createElement("tr");这一行下面写r=change(r);就不行,写成
r.setAttribute("onmouseover","this.style.backgroundColor='#ccc'");
r.setAttribute("onmouseout","this.style.backgroundColor='white'");
就可以了呢?
2014-09-30
举报