課程
/前端開發
/小程序
/輕松入門微信小程序與云開發
為什么會發生錯誤呢?
2019-09-10
源自:輕松入門微信小程序與云開發 3-3
正在回答
請把console.err()改成console.error(),然后根據錯誤提示,就能找到問題了。
豆瓣API有變化,需要在請求API的url后面跟一個apikey參數:
電影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10電影詳情API:`http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a`
舉報
深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。
3 回答wx.cloud.callFunction is not a function
2 回答TypeError: _this.data.movieList is not a function
1 回答TypeError: console.err is not a function
7 回答TypeError: console.err is not a function
3 回答TypeError: _this.data.movielist is not a function這是什么鬼。。。
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-09-10
請把console.err()改成console.error(),然后根據錯誤提示,就能找到問題了。
豆瓣API有變化,需要在請求API的url后面跟一個apikey參數:
電影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
電影詳情API:`http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a`