首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

JQUERY TABLE 中的列抉择

2012-10-17 
JQUERY TABLE 中的列选择1.$(table tr).find(td:first).html(11)?2.$(table tr).each(function(){$

JQUERY TABLE 中的列选择

1.$("table tr").find("td:first").html(11);

?

2.$("table tr").each(function(){
$(this).find("td:eq(1)").html(22);?????
})

?

3.$("table tr td:first-child").html("first");
$("table tr td:last-child").html("last")

?

4.$("table tr td:nth-child(3)").html(33)
$("table tr td:nth-child(odd)").html(44)
$("table tr td:nth-child(even)").html(55)
$("table tr td:nth-child(3n+1)").html(66)

热点排行
Bad Request.