wx.cloud.database().collection('patient') .where({ name:nametwo, }) .get() .then(res=>{ console.log('查找对应数据成功',res.data) })
获得的数据中间有个0,该怎么表示,res.data后面应该怎么写才能获得_id万分感谢!!!
你这个是数组形式 。res.data[0] 就能拿到了