var ent= data.data;
for (var i in ent){
var $tr =
$("<tr>" +
"<td>" + ent[i].materielSku.code + "</td>" +
"<td>" + ent[i].materielSku.name + "</td>" +
"<td>" + ent[i].productionDate + "</td>" +
"<td>" + ent[i].useDate + "</td>" +
"<td>" + ent[i].batchNumber + "</td>" +
"<td>" + ent[i].purchaseNum + "</td>" +
"</tr>");
var $table = $('table tbody');
$table.append($tr);
}
js循环list对象
最新推荐文章于 2023-03-21 16:00:17 发布