打赏

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

$("table tr:gt(0)").each(function(i){
    alert("这是第"+i+"行内容");
    $(this).children("td").each(function(i){
        alert("第"+i+"个td的内容:"+$(this).text());
    });
});

 

posted @ 2016-07-30 10:48  海米傻傻  阅读(556)  评论(0编辑  收藏  举报