const fs = require('fs');
const xlsx = require('node-xlsx');
const sheets = xlsx.parse('./shiyan.xlsx');
sheets.forEach(function (sheet) {
const data = sheet['data'];
let array = [];
for (let rowID in data) {
const row = data[rowID];
array.push(row[3]);
}
console.log(array);
});
打印row,在控制台看看row[3]是不是有值的
row[3]没值呗
OK了,谢谢哈∩▂∩