📜  exceljs 读取文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:35.477000             🧑  作者: Mango

代码示例1
var workbook = new Excel.Workbook(); 
workbook.xlsx.readFile(filename)
    .then(function() {
        var worksheet = workbook.getWorksheet(sheet);
        worksheet.eachRow({ includeEmpty: true }, function(row, rowNumber) {
          console.log("Row " + rowNumber + " = " + JSON.stringify(row.values));
        });
});