$("#edit_save").click(function(){
// 遍历所有的table数据
html='';
$('.phone-number-table').find('tbody').each(function () {
log( $(this));
$(this).find('tr').each(function () {
//log($(this).text());
$(this).find('td').each(function () {
html += $(this).text() + ',';
});
html += '|';
log(html);
});
log('html= '+html);
return false;
});
});
jquery 获得table中所有行的数据
最新推荐文章于 2023-06-30 14:59:42 发布