Web appOpen in Telegram

Messagemap() 內的 context 在 map((thread) => { return db.download(thread); } 和 map(db.download) 下會不同

28 February 2018
F
map() 內的 context 在 map((thread) => { return db.download(thread); } 和 map(db.download) 下會不同

Nearby in the feed

フフラン❤map(x => db.download(x)) 就是被 db 呼叫...フフラン❤好像可以理解了... 第一次被這種雷到
this message
Wwiwi你上面那種做法是用 map 去呼叫 db.download,後面的話算是 db 自己呼叫 downloadWwiwi兩種呼叫的方式不同所以 this 會不同,你如果用 bind 的方式算是主動去綁定
JJavaScript/Node.js 台灣JavaScript/Node.js 台灣@JavaScriptTw · group · Tech
1 999members4writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count