Jquery 数据表已导出 excel

Jquery Datatable's exported excel

如何删除 jquery 数据表的导出 excel 的 header(第一行)。我可以对齐一些列 header。 我的代码现在是这样的..

            buttons: [
                {
                    extend: 'excelHtml5',
                    text: '<i class="fa fa-file-excel" aria-hidden="true"></i>Eksport',
                    footer: true,
                    className: 'btn btn-success my-5',                      

                },
         

enter image description here

buttons: [ { ... } ] object 中使用 title: null 选项。将标题设置为空字符串 '' 也有效。

有关详细信息,请参阅文档 here and here