jQuery遍历table中的tr td并获取td中的值
$(function(){
$("#tableId tr").find("td").each(function(){
<span style="white-space:pre"> </span> var year = $("#year").val();
var month = $("#month").val();
var day = $(this).text();
if(month < 10)
{
<span style="white-space:pre"> </span>month = "0" + month;
}
if(day < 10)
{
day = "0" + day;
}
date = year + "-" + month + "-" + day;
});
});