// import puppeteer from 'puppeteer' // https://github.com/SheetJS/sheetjs import reader from 'xlsx' const file = reader.readFile('D:\\doc\\名单.xlsx', { cellDates: true, sheetRows:0, sheets: '展示'}) async function xls2json() { let data = [] const temp = reader.utils.sheet_to_json(file.Sheets['展示']) data = temp return {data} }
标签:const,读取,nodejs,excel,puppeteer,file,reader,data From: https://www.cnblogs.com/zyip/p/16993791.html