嗯嗯 确实要先把整个取出来
应该用什么方法将云数据库中的值赋值给data中的变量?data: { images: [], images2: [], students: [], // student:[], sname: '', sno: '', depart: '', cno: '', h: '', min: '', mon: '', d: '', ch: '', cmin: '', cmon: '', cd: '', }, const db = wx.cloud.database() db.collection('classes').where({ cno: this.cno }).get({ success: res => { console.log(res.data) this.data.ch = res.data.h, this.data.cd = res.data.d, this.data.cmin= res.data.min, this.data.cmon = res.data.mon // this.setData({ // ch:this.h, // cmin: res.data.min, // cmon: res.data.mon, // cd: res.data.d
2020-04-15