我正在使用dataTables来显示我的数据。但是,我想要导出自定义选择行。我已经在每一行中创建了一个删除按钮,它删除了所选的行。但是,当我导出数据时,也会导出已删除的行。这是我目前的代码:
$('.dataTables').DataTable({
pageLength : 25,
responsive : true,
dom : '<"html5buttons"B>lTfgitp',
buttons : [
{extend: 'copy'},
{extend: 'csv', title: "Laporan Penomoran"},
{extend: 'excel', title: "Laporan Penomoran"},
{extend: 'pdf', title: "Laporan Penomoran"},
{extend: 'print',
customize: function (win){
$(win.document.body).addClass('white-bg');
$(win.document.body).css('font-size', '10px');
$(win.document.body).find('table').addClass('compact').css('font-size', 'inherit');
}
}
]
});