我将 bootstrap-table 插件与 tableExport 插件(https://github.com/hhurz/tableExport.jquery.plugin)一起使用。
我设法导出了我的表格,但我想在表格本身之前在 PDF 中添加一个标题。这是我的代码:
$("#table").bootstrapTable({
exportOptions: {
fileName: 'export_anim',
worksheetName: 'table',
csvSeparator: ';',
jspdf: {
orientation: "l",
autotable: {
styles: {rowHeight: 14, fontSize: 8, fillColor: 240},
headerStyles: {fillColor: 255, textColor: 0},
alternateRowStyles: {fillColor: 210, textColor: 0}
}
}
}
});
有什么办法可以做到这一点?