📅  最后修改于: 2022-03-11 15:01:20.400000             🧑  作者: Mango
代码示例1
fs.readFile(filePath, function (error, content) {
var data = JSON.parse(content);
console.log(data.collection.length);
});