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
});
相关链接
TableExport.js是一个便捷的jQuery插件,能够将表格数据导出为xlsx、xls、csv和txt格式。只需简单的配置,如设置导出文件名、选择导出类型和设置按钮样式,即可在网页表格中实现文件导出功能,适用于前端数据导出场景。

2万+

被折叠的 条评论
为什么被折叠?



