table嵌套table,jquery获取tr个数 一.所有tr的个数 $("#tableId tr").length 二.所有一级tr的个数 1.$("#tableId > tr").length 2.$("#tableId > tbody > tr").length