【问题标题】:"Excel" button does not appear in the DATATABLE plugin“Excel”按钮未出现在 DATATABLE 插件中
【发布时间】:2022-01-18 18:48:01
【问题描述】:

我正在使用 DATATBLE,它包括 DATATBLE 本身提供的所有按钮。单击时,除了 excel 和 PDF 按钮之外的所有内容都出现。

我的进口顺序:

define(
        ["jquery","jqueryui","bootstrap","bootstrap.datetimepicker","app/datatable","sweet-alert.min","jszip.min","dataTables.net-buttons","pdfmake.min",
        "vfs_fonts","buttons.html5.min","buttons.print.min"],  

我的数据表:

$(document).ready(function() {
                        tableInscricoes = $('#inscricoes').DataTable({
                            data: data,
                            pageLength: 50,
                            dom: 'Bfrtip',
                            buttons: [
                                'copy', 'csv', 'excel', 'pdf', 'print'
                            ],
                            // retrieve: true,
                            
                            columns: [
                                { title: "Selecione" },
                                { title: "Ação" },               
                                { title: "Curso" },
                                { title: "Série Escola" },
                                { title: "RA" },
                                { title: "Aluno" },
                                { title: "Turma Aut." },
                                { title: "Inscrição" },
                                { title: "Início Mat." },
                                { title: "Fim Mat." },
                                { title: "Dt. Cancel." },
                                { title: "Cancel. Por" },
                            ]
                        });   
                     });

【问题讨论】:

    标签: javascript jquery datatable


    【解决方案1】:

    为了使数据表正常工作,我建议使用Datatable builder,这样它就不会损坏或出现意外行为。

    【讨论】:

      猜你喜欢
      • 2018-03-31
      • 2018-01-25
      • 2017-08-17
      • 1970-01-01
      • 2021-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多