2014-05-17 72 views

回答

0

您還可以使用CSS類:nth-child(k)。例如:

var tr = $("#topTable tr[data-mainRow]:even"); 
tr.find("td:nth-child(1)").doSomething(); 
tr.find("td:nth-child(2)").doSomething(); 
tr.find("td:nth-child(3)").doSomething(); 

的索引從1不是0。

+0

感謝理解問題和一個可行的解決方案開始。 –

相關問題