阅读量:0
const nodeXlsx = require("node-xlsx"); //引入模块 let path = 'D://tmp//test.xlsx' let sheets = nodeXlsx.parse(path) // 解析所有sheet sheets.forEach(sheet => { //标题 let titles = sheet.data[0]; // rows 数据 let rows = sheet.data.slice(1); })