level 1
代码是这样
$("#tjzd").click(function(){
$('#gwc tr').each(function() {
var row = [];
$(this).find('td').each(function() {
row.push($(this).text());
});
console.log(row);
});
只能获取td的值,但td中有input,需要同时获取td中的值和td中input的值,上面代码只能获取到td,不能获取到input,获取到input的值是空值
2023年03月18日 04点03分
1