jquery 遍历表格,需要表格中每个td的内容

$("table tr:gt(0)").each(function(i){
    alert("这是第"+i+"行内容");
    $(this).children("td").each(function(i){
        alert("第"+i+"个td的内容:"+$(this).text());
    });
});
原文地址:https://www.cnblogs.com/haimishasha/p/5720464.html