9-22练习题Highlight()函数这样写语法有没有错误??
function Highlight()
{
var tbody = document.getElementById('table').lastChild;
trs = tbody.getElementsByTagName('tr');
for(var i =1;i<trs.length;i++){
trs[i].onmouseover=onmous(trs[i]);
trs[i].onmouseout =outmous(this);
}
function onmous(trsi)
{
trsi.style.backgroundColor ="#f2f2f2";
}
function outmous(trsi)
{
trsi.style.backgroundColor ="#fff";
}
}