为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我在 var r = document.createElement("tr");这一行下面写r=change(r);就不行,写成

  r.setAttribute("onmouseover","this.style.backgroundColor='#ccc'");

    r.setAttribute("onmouseout","this.style.backgroundColor='white'");

就可以了呢?

正在回答

1 回答

change()是你写的函数吗?r是你获取的元素,你函数中怎么写的

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信