一.所有tr的个数
$("#tableId tr").length
二.所有一级tr的个数
1.$("#tableId > tr").length
2.$("#tableId > tbody > tr").length

相关文章: