📅  最后修改于: 2022-03-11 15:02:22.155000             🧑  作者: Mango
var readJson = (path, cb) => {
fs.readFile(require.resolve(path), (err, data) => {
if (err)
cb(err)
else
cb(null, JSON.parse(data))
})
}