$("div tbody tr").click(function() {
var rows = $(this).prevAll().length + 1;//行号
alert(rows );
var rows = $(this).prevAll().length + 1;//行号
alert(rows );
});
//获取表的总行数 tr
$("#tableid").find("tr").length ;
//获取所在行的行号
$(this).parent().prevAll().length + 1;//行号
//获取所在列的列号
$(this).prevAll().length + 1;//列