$(‘table‘).mousedown(function(e){ celindex = $(e.target)[0].cellIndex; rowindex = $(e.target).parent()[0].rowIndex; });
.cellIndex对象是<td>.
.rowIndex对象是<tr>.
2023-12-11 19:03:27
$(‘table‘).mousedown(function(e){ celindex = $(e.target)[0].cellIndex; rowindex = $(e.target).parent()[0].rowIndex; });
.cellIndex对象是<td>.
.rowIndex对象是<tr>.