課程
/前端開發
/小程序
/輕松入門微信小程序與云開發
`http://api.douban.com/v2/movie/in_theaters?start=${event.start}&count=${event.count}`這樣寫好為什么訪問的數據是空的
2019-06-05
源自:輕松入門微信小程序與云開發 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有了變化,你試試這個
rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`)
舉報
深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。
1 回答關于豆瓣電影api不好使的問題
1 回答豆瓣電影詳情的API獲取不了
3 回答豆瓣電影詳情API調不了嗎?
1 回答豆瓣接口查不到數據
3 回答豆瓣電影詳情的API獲取不了
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-06-06
由于最近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-06-05
老師說最近api有了變化,你試試這個
rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`)