我试图关注此example
var tags = $('#MainContent_myTable tr').each(function () {
return $(this).find('.tablecellname').html();
}).get().join(',');
console.log(tags);
当我查看输出时,我得到以下内容:
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],
[object HTMLTableRowElement],[object HTMLTableRowElement],[object HTMLTableRowElement],...
我做错了什么?