Javascript I';我在使用calrketm/TableExport,为什么xlsx按钮不显示?

Javascript I';我在使用calrketm/TableExport,为什么xlsx按钮不显示?,javascript,export-to-excel,Javascript,Export To Excel,我需要将html表格数据导出到xlsx。我正在github上使用calrketm/TableExport。。。但是,我看不到导出到Xlsx按钮。我该怎么办?这是因为默认情况下不包括“xlsx”。请参见下面的默认设置: $("table").tableExport({ headings: true, // (Boolean), display table headings (th/td elements) in the <thead>

我需要将html表格数据导出到xlsx。我正在github上使用calrketm/TableExport。。。但是,我看不到导出到Xlsx按钮。我该怎么办?这是因为默认情况下不包括“xlsx”。请参见下面的默认设置:

$("table").tableExport({
    headings: true,                     // (Boolean), display table headings (th/td elements) in the <thead>
    footers: true,                      // (Boolean), display table footers (th/td elements) in the <tfoot>
    formats: ["xls", "csv", "txt"],     // (String[]), filetype(s) for the export
    fileName: "id",                     // (id, String), filename for the downloaded file
    bootstrap: true,                    // (Boolean), style buttons using bootstrap
    position: "bottom",                 // (top, bottom), position of the caption element relative to table
    ignoreRows: null,                   // (Number, Number[]), row indices to exclude from the exported file
    ignoreCols: null,                   // (Number, Number[]), column indices to exclude from the exported file
    ignoreCSS: ".tableexport-ignore",   // (selector, selector[]), selector(s) to exclude cells from the exported file
    emptyCSS: ".tableexport-empty",     // (selector, selector[]), selector(s) to replace cells with an empty string in the exported file
    trimWhitespace: false               // (Boolean), remove all leading/trailing newlines, spaces (including non-breaking spaces), and tabs from cell text
});

我还需要通过SheetJS包含xlsx.core.js,它现在可以工作了。谢谢。如果您有任何api或使用特定的问题,请随时通过直接联系我或查看。
$("table").tableExport({
    formats: ["xls", "csv", "txt", "xlsx"]
});