云开发工具,数据库的高级操作,then语句报错,这是啥情况?
db.collection(‘user’)
.where({
tel: ‘123456’,
del: ‘n’
}).get().then(res => {
console.log(res)
})
untimeError: cannot get property ‘then’
不支持then么,Promise
db.collection(‘user’)
.where({
tel: ‘123456’,
del: ‘n’
}).get().then(res => {
console.log(res)
})
untimeError: cannot get property ‘then’
不支持then么,Promise