出于好奇,我想知道两者之间是否有任何区别。 读取文件同步: function parseFile(filePath) { let data = fs.readFileSync(filePath); } 使用promisify读取文件:
確定! 回上一頁