tale table row click event, get the value of the first column of the current row

$("#table_id tbody").on("click","tr",function() {
  var td = $(this).find("td");
  var data = td.eq(0).text();
});

//The advantage of this is that even if the table is turned, it will not affect the click event

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325255665&siteId=291194637