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