readFile ,它使用Node回撥模式。您可以獲得類似的promise版本: const readFilePromise = util.promisify(fs.readFile); ...然後將其與 async / await 語法一起使用(或 ...
確定! 回上一頁