1. 程式人生 > >table表的tr行點選事件,獲取對應的table表的第一列的值

table表的tr行點選事件,獲取對應的table表的第一列的值

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