TableExport.js是一个jquery轻松导出表格成 xlsx, xls, csv,txt等格式插件,使用非常的方便。jquery表格导出EXCEL文件插件,jquery表格导出文本文档文件插件。
/* Defaults */
$("table").tableExport({
headings: true, // (Boolean), display table headings (th elements) in the first row
formats: ["xls", "csv", "txt"], // (String[]), filetypes 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
});
相关链接