1.0.1 • Published 2 years ago
endtoexcel v1.0.1
endtoexcel
将json数据转化为Excel
数据格式
{ name:string // 导出名称 theader:Array //头部标题 tbody:Array // 内容列表 }
导入
import endtoexcel from 'endtoexcel';
使用
const clickjson = ()=>{
let endtoexcels = new endtoexcel({
name:'endtoexcel',
theader:['A','B'],
tbody:[1,2]
});
endtoexcels.download()
}