1
엑셀 시트 데이터를 json 형식으로 변환하려고했지만 "xls-to-json", "xls-to-json-lc", "node- 엑셀 - 투 - 존슨 ", 지금까지 나는 빈 응답을 가지고있다.노드 JS를 사용하여 Excel에서 JSON으로 변환
내 샘플 코드는 다음과 같이 간다 :이에서 잘못하고있는 무슨
, 내가 무엇입니까 파일과 유효한 :
var node_xj = require("xls-to-json");
node_xj({
input: req.file.path, // input xls
output: "output.json", // output json
sheet: "a" // specific sheetname
}, function(err, result) {
if(err) {
console.error(err);
} else {
console.log("--------result----");
console.log(result);
}
});
내 엑셀 시트는 매우 간단한 데이터를 포함 경로.
콘솔에 출력하고있는'result'의 결과는 무엇입니까? –
비어 있음, 비어 있음 –