怎么样获取框框里的数组呀?
const db = wx.cloud.database().collection('Room');
Page({
data: {
tempFilePaths:"",
pwd:"",
lock:"",
time:"",
result: "",
Rname:"",
UName:"",
temp :"",
delBtnWidth: 180,
Lists: []
},
onLoad: function (options) {
let that=this
var getRID=wx.getStorageSync('getRID');
db.where({
_id:getRID
}).get({
success: function(res) {
// res.data 是包含以上定义的两条记录的数组
console.log(res.data)
console.log("avatarUrl:",res.data[0].avatarUrl)
console.log("result:",res.data[0].count)
console.log("Rname:",res.data[0].Rname)
console.log("time:",res.data[0].RDate)
console.log("lock:",res.data[0].Rlock)
console.log("pwd:",res.data[0].Rpassword)
console.log("lists:",res.data[0]) // 问题在这里!!!!!!!应该怎么获取呢?lists是前面定义的一个空数组,想打印到控制台先看看能不能获取到数据,求大神
}
})
},
that.setdata()..