課程
/前端開發
/小程序
/輕松入門微信小程序與云開發
TypeError: Cannot read property 'subjects' of null
2019-11-17
源自:輕松入門微信小程序與云開發 4-3
正在回答
豆瓣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`
API的地址有問題:
慕標6527417
沒定義方法名
舉報
深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。
3 回答Cannot read property 'subjects' of null
1 回答comment.js:38 Uncaught (in promise) TypeError: Cannot read property '0' of null
2 回答批量刪除返回為null,日志提示:TypeError: Cannot read property 'length' of undefined
3 回答Cannot read property 'concat' of undefined
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-11-23
豆瓣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`
2019-11-18
API的地址有問題:
2019-11-18
沒定義方法名