導出是用xlsx插件實現的,可導出后的excel顯示的數據格式不對代碼://導出當前表格exportCurrent:function(){ var wb = XLSX.utils.table_to_book(document.querySelector('#out-table')) //表格id
var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: true, type: 'array' }) try {
FileSaver.saveAs(new Blob([wbout], { type: 'application/octet-stream' }), 'sheet.xlsx') //文件名
} catch (e) { if (typeof console !== 'undefined') console.log(e, wbout) } return wbout
},這個該怎么解決呀 找相關文檔也找不到 好心酸~~
- 1 回答
- 0 關注
- 776 瀏覽
添加回答
舉報
0/150
提交
取消