看板 Web_Design 關於我們 聯絡資訊
想請問firebase 在上傳檔案後 回傳function 的 progress 和 downloadURL 該如何處理比較好? 我用React 寫App. 但不知道該如何處理這兩個回傳的資料 在function 內用setState 會出現error 請問有沒有人能幫忙一下 感謝 https://i.imgur.com/CVv9i9B.jpg -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 107.138.6.67 ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1511552041.A.9B0.html
ninetyeight: arrow function 11/25 09:18
dannypsnl: 萬年問題,this規則 11/25 23:36
chopinmozart: this.uploadFile = this.uploadFile.bind(this) 嗎 11/26 01:09
jake255121: 我都用 var me = this 11/26 03:53