请问,云开发调不到数据怎么解决呀?显示的数组是空的,请问大家怎么解决的呀?下面是我的代码~
///////////.wxml <view class="bgView flexStandard"> <view class="titleBox"> <view class="titleView"><text class="title">钱包余额</text></view> <view class="num" wx:for="{{datanum}}">{{item.money}}></view> </view> </view> <view class="button1"> <button class="qian1" type="primary" bindtap="getmoney1">¥20</button> </view> /////////.js const db=wx.cloud.database() Page({ data: { datanum:"" }, getmoney1(){ db.collection("qianbao").where({ money:"20" }).get({ success:res=>{ console.log(res.data) this.setData({ datanum:res.data }) } }) },