【发布时间】:2015-05-14 15:56:03
【问题描述】:
尝试在 node.js 中创建 Excel 电子表格时,为什么以下代码不起作用?
var Excel = require("xlsx");
workbook = new Excel.Workbook();
Excel.writeFile(workbook, 'out.xlsx');
我得到错误:
workbook = new Excel.Workbook();
^
TypeError: undefined is not a function
我应该如何以不同的方式做到这一点?我被难住了。
【问题讨论】:
标签: javascript node.js excel