我想更改使用表导出扩展时使用的文件名。我知道我可以使用 exportOptions 添加 {fileName:'custom_file_name'}。但我不知道把这个放在哪里。
我试过:
data-export-options="{fileName:'custom_file_name'}"
Run Code Online (Sandbox Code Playgroud)
我尝试添加为一种方法:
$('#table').bootstrapTable('exportOptions', {fileName: 'custom_file_name'})
Run Code Online (Sandbox Code Playgroud)
但后来我收到一个错误:未捕获的错误:未知方法:exportOptionsenter code here
我错过了什么?