如果我們的readFile函數返回了一個promise,我們將編寫相同的邏輯: ... encoding) { return new Promise(function(resolve, reject) { fs.
確定! 回上一頁