可以看到,对 http.request 的调用被放到了Promise的主体里面,而 http.request 的回调放到了Promise的 then 函数里。相比Nodejs的原生异步代码结构:. Promise封装后的 ...
確定! 回上一頁