【发布时间】:2015-12-29 15:50:25
【问题描述】:
这里我需要将我的 excel 转换为 json,因为我只在正确的路径文件中。运行时显示以下错误:
[TypeError: Cannot set property length of [object Object] which has only a getter]有什么帮助吗?
node_x = require("xls-to-json"); var stack = new Error().stack;
try{
node_x({
input: "Book1.xls", // input xls
output: "output.json" // output json
}, function(err, result) {
if(err) {
console.error(err);
} else {
console.log(result);
}
});
}catch(e){
console.log("ssfffs");
console.error(e);
}
【问题讨论】: