更新时间:1970-01-01 07:58:42
您可以执行以下操作:
$("tr.myTable").click(function() {
var tableData = $(this).children("td").map(function() {
return $(this).text();
}).get();
console.log(tableData);
});
返回一个不错的数据数组,然后您可以根据需要显示它.
Returns a nice array of your data, then you can display it how you want.