huangyutong / node-workshop

0 stars 0 forks source link

Promise 的執行函式 #4

Open azole opened 3 years ago

azole commented 3 years ago

https://github.com/huangyutong/node-workshop/blob/0f2deb9024e04242eaa0e412adcd03ed465e3bcc/crawler/crawler-db.js#L63

Promise 建構式需要傳入一個執行函式,這個執行函式應該要有兩個參數,還記得是哪兩個嗎?

huangyutong commented 3 years ago

忘記寫resolve和reject了