$('table').mousedown(function(e){ celindex = $(e.target)[0].cellIndex; rowindex = $(e.target).parent()[0].rowIndex; });
.cellIndex对象是<td>.
.rowIndex对象是<tr>.