js 导出 excel window.location.href 没有生成文件名字的问题
今天生产环境发生了一件奇怪的事情,之前写好的 excel 导出的 js 代码竟然导出的文件没有文件名字,之前都是随机字符串的。代码function tableToExcelExp(str, sheetName) { var uri = 'data:application/vnd.ms-excel;base64,'; var template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x
原创
2020-12-21 14:17:10 ·
1228 阅读 ·
1 评论