代碼沒問題,但是參數0和3都傳不過去,請老師幫忙看看啥問題
/**
???*?生命周期函數--監聽頁面加載
???*/
??onLoad:?function?(options)?{
????wx.cloud.callFunction({
??????name:"movielist",
??????data:{
????????start:0,
????????count:3
??????}
????}).then(res=>{
??????this.setData({
????????movieList:this.data.movieList.concat(JSON.parse(res.result).subject_collection_items)
??????})
????}).catch(err=>{
??????console.log(err)
????})
??},
2020-11-22
上面的代碼沒有問題。
傳不過去是什么意思呢?需要檢查下云函數代碼是否正確。
2020-11-21
接口已經失效了