$('table').mousedown(function(e){
     celindex = $(e.target)[0].cellIndex;
     rowindex = $(e.target).parent()[0].rowIndex;
});

.cellIndex对象是<td>.

.rowIndex对象是<tr>. 

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-04-30
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
相关资源
相似解决方案