如题,我感觉应该很简单,但是没找到方法,希望有了解的大佬可以指点一下
res.data[0].字段
const db = wx.cloud.database()
db.collection('todos').field({
description: true,
done: true,
progress: true
})
.get()
.then(console.log)
.catch(console.error)
var hotel_id =JSON.parse( res.data[0].hotel_id);
我的按照这样解决了
select 字段名 from 表 where id = 你的记录的id