課程
/前端開發
/小程序
/輕松入門微信小程序與云開發
2019-08-22
源自:輕松入門微信小程序與云開發 4-3
正在回答
return rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a?start=${event.start}&count=${event.count}`).then(function (res) {console.log(res);return res;}).catch(function (err) {console.error(err);});}?
把API 換成這個試試:`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=1&count=10`,你的那個多個問號
).then(res => {
console.log(res)
}).catch(console.error)
換成這樣試一試。你那個紅色的就是你的代碼格式有問題
請問還是報錯的話,你的代碼改成什么樣子了?請截圖出來。
不行的,還是報錯
云函數中,then后面的括號有問題:
豬軋糖
舉報
深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。
5 回答麻煩老師看看已經好幾天了電影詳情問題
3 回答TypeError: _this.data.movieList is not a function 不知道是哪兒寫錯了,找半天找不出來
2 回答檢查沒問題呀,幫我看看咋回事,一直再報這個錯誤
1 回答環境問題?研究了半天不知道怎么搞
2 回答這是什么錯誤啊,困擾我半天了
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-08-25
return rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a?start=${event.start}&count=${event.count}`)
.then(function (res) {
console.log(res);
return res;
})
.catch(function (err) {
console.error(err);
});
}?
2019-08-23
把API 換成這個試試:`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=1&count=10`,你的那個多個問號
2019-08-23
).then(res => {
console.log(res)
}).catch(console.error)
換成這樣試一試。你那個紅色的就是你的代碼格式有問題
2019-08-22
請問還是報錯的話,你的代碼改成什么樣子了?請截圖出來。
2019-08-22
不行的,還是報錯
2019-08-22
云函數中,then后面的括號有問題: