導(dǎo)出是用xlsx插件實(shí)現(xiàn)的,可導(dǎo)出后的excel顯示的數(shù)據(jù)格式不對代碼://導(dǎo)出當(dāng)前表格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
},這個(gè)該怎么解決呀 找相關(guān)文檔也找不到 好心酸~~
- 1 回答
- 0 關(guān)注
- 781 瀏覽
添加回答
舉報(bào)
0/150
提交
取消