1:为什么我这样写不行?2:别人写的obj那种传参好像貌似可以,为什么?我这写的好像也没问题啊,求一一解答
backgroundColor 拼写错误
    tr.onmouseover=function(){
            this.style.background = #f2f2f2;
        }
        tr.onmouseout = function(){
            this.style.background = #fff;
        }
随便瞅了一眼, 属性赋值少了“”,不知道影响不影响。