Вы можете использовать два способа:
table.rows().every(function (rowIdx, tableLoop, rowLoop) {
var nodes = this.nodes().to$();
var item = {
id: nodes.find('td:eq(0)').text(), // Get first column content
description: nodes.find('td:eq(1)').text() // Get second column content
};
});
ИЛИ
table.rows().every(function (rowIdx, tableLoop, rowLoop) {
var item = {
id: this.cell(rowIdx,0).data(), // Get first column content
description: this.cell(rowIdx,1).data() // Get second column content
};
});
Более подробную информацию вы можете найти здесь .