mark下
$("tbody tr",‘.test-table‘).each(function() {
$("<td>test</td>").insertBefore("td.last-item",this);//this是当前行,但insertBefore,两个参数并不代表筛选范围。。。。。。
$("<td>test</td>").insertBefore($(this).find("td.supply-price"));//这个没问题
});
时间: 2025-01-07 03:40:34