JQuery通过点击Class为ok的span来取到tr下面每个td的值

如题所述

$("body").delegate("span.ok","click",function(){
var me=$(this),tr=me.closest("tr");
var tds=tr.find("td:not(:last)");
tds.each(function(){
console.log($(this).text());
});
});
温馨提示:答案为网友推荐,仅供参考