jQuery 获取 table 行数

 

//获取表的总行数 tr

$("#tableid").find("tr").length ;

//获取所在行的行号

$(this).parent().prevAll().length + 1;//行号

//获取所在列的列号

$(this).prevAll().length + 1;//列

原文地址:https://www.cnblogs.com/lazyboy1/p/5197524.html