Object(...)(...).then is not a function

遇到這種問題,先去看你用的這個方法是不是一個promise對象,不是promise的話不能.then !! 1.如:這就不是一個promise對象, 2.如:這就是一個promise對象, http.post或者http.get都是promise對象 3.這樣請求的話就會出現上面的報錯: Object(…)(…).then is not a function (錯誤的!!) 4.正確的請求: 重點
相關文章
相關標籤/搜索