$("table tr:gt(0)").each(function(i){ alert("这是第"+i+"行内容"); $(this).children("td").each(function(i){ alert("第"+i+"个td的内容:"+$(this).text()); }); });
jquery 遍历表格,需要表格中每个td的内容
原文:http://www.cnblogs.com/haimishasha/p/5720464.html