for (i=1;i <e_tr.length;i++)
{
e_td=e_tr[i].getElementsByTagName("td");
(function(x){ e_td[3].setAttribute("onclick",function(){alert(x)})})(i);
}查查闭包
{
e_td=e_tr[i].getElementsByTagName("td");
(function(x){ e_td[3].setAttribute("onclick",function(){alert(x)})})(i);
}查查闭包
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货