Open azole opened 3 years ago
https://github.com/huangyutong/node-workshop/blob/0f2deb9024e04242eaa0e412adcd03ed465e3bcc/crawler/crawler-db.js#L63
Promise 建構式需要傳入一個執行函式,這個執行函式應該要有兩個參數,還記得是哪兩個嗎?
忘記寫resolve和reject了
https://github.com/huangyutong/node-workshop/blob/0f2deb9024e04242eaa0e412adcd03ed465e3bcc/crawler/crawler-db.js#L63
Promise 建構式需要傳入一個執行函式,這個執行函式應該要有兩個參數,還記得是哪兩個嗎?