老师,请回答,VM868:1 SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at comment.js:25
wx.cloud.callFunction({name:'getdetail',data:{movieid:options.movieid}}).then(res=>{console.log(res);this.setData({detail:JSON.parse(res.result)});wx.hideLoading();}).catch(err=>{console.error(err);wx.hideLoading();})
出错
VM868:1 SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at comment.js:25