課程
/前端開發
/小程序
/輕松入門微信小程序與云開發
result 為空,請問老師這個怎么辦?
2019-05-15
源自:輕松入門微信小程序與云開發 1-1
正在回答
豆瓣api掛了 要用新的
換一個接口地址
onLoad: function (options) {
wx.cloud.callFunction({
name:'movieList',
data:{
start:this.data.movieList.length,
count:10
}
}).then(res=>{
// console.log(res);
this.setData({
movieList: this.data.movieList.concat(JSON.parse(res.result).subjects)
});
}).catch(err=>{
console.error(err);
})
},
?你的問題難以回答,最好先請提供代碼 和 復現細節
舉報
深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。
3 回答result 為空,請問老師這個怎么辦?
1 回答詳情接口result為空,請問老師怎么辦?
4 回答老師result是空值還報錯怎么辦
2 回答我的result還是為空,請問老師怎么解決?
2 回答result為null,怎么辦?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-09-17
豆瓣api掛了 要用新的
2019-05-23
換一個接口地址
2019-05-16
onLoad: function (options) {
wx.cloud.callFunction({
name:'movieList',
data:{
start:this.data.movieList.length,
count:10
}
}).then(res=>{
// console.log(res);
this.setData({
movieList: this.data.movieList.concat(JSON.parse(res.result).subjects)
});
}).catch(err=>{
console.error(err);
})
},
2019-05-15
?你的問題難以回答,最好先請提供代碼 和 復現細節