db.collection('c')
.where({
username:this.data.username
})
.where()中的值能是变量吗?Can the value in .where() be a variable?
.where()中的值能是变量吗?db.collection('c')
.where({
username:this.data.username
})
db.collection('c') .where({ username:this.data.username })
回答:
可以
可以
原文出处:.where()中的值能是变量吗?
可以是变量,你现在这种写法就是支持的