db.collection('fang')
.where({
['fields.省市']: '****', // 当填北京的时候查询出省市为北京的,****为什么时会查出所有的数据??
})
.get()
.then(res => {
console.log(res)
})
.catch(err => {
console.error(err)
})
方案链接:https://blog.csdn.net/suyongsimple/article/details/86627769
db.collection('fang')
.where({
['fields.省市']: '****', // 当填北京的时候查询出省市为北京的,****为什么时会查出所有的数据??
})
.get()
.then(res => {
console.log(res)
})
.catch(err => {
console.error(err)
})
方案链接:https://blog.csdn.net/suyongsimple/article/details/86627769
不要方括号试试。
.where({
'fields.省市': '****',
})