first commit

This commit is contained in:
Warunee Tamkoo 2023-09-06 14:51:44 +07:00
commit eb2f504652
32490 changed files with 5731109 additions and 0 deletions

View file

@ -0,0 +1 @@
const e=new class{getXlsx(e,t,r="数据报表.xlsx"){if(!Array.isArray(e))throw new Error(`${e} is must be Array and not empty!`);if(!Array.isArray(t))throw new Error(`${t} is must be Array and not empty!`);let o=t.toString()+"\n";for(let t=0;t<e.length;t++){for(let r in e[t])o+=`${e[t][r]+"\t"},`;o+="\n"}let n="data:text/csv;charset=utf-8,\ufeff"+encodeURIComponent(o);var a=document.createElement("a");a.href=n,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a)}};window.jsontoexcel=e;const t=e;export{t as jsontoexcel};