1.下载依赖 npm install node-xlsx; npm install fs; 2.在项目中导入 const xlsx = require('node-xlsx'); const fs = require('fs'); 3.使用 //导出的数据 const statisticsInfo= await accountsSrv.getAccountDetailInfoSrv(parmas); let data1 = []; let header = [ '条形码', '送检时