导出完成后如何执行功能?
"buttons": [{
extend: 'excelHtml5',
className: 'btn btn-outline-success active',
text: 'Exportar para Excel',
action: function (e, dt, node, config) {
var that = this;
dt.page.len(-1).draw();
dt.on('draw', function () {
$.fn.dataTable.ext.buttons.excelHtml5.action.call(that, e, dt, node, config);
});
//calback excelHtml5 is complete
}
}]
我尝试过类似的
"fnComplete": function ( nButton, oConfig, oFlash, sFlash ) {
location.reload();
},
没用