.where()中的值能是变量吗?

发布于 7 年前作者 li4914080 次浏览最后编辑 7 年前来自 ask

 db.collection('c')

    .where({

      username:this.data.username

    })

4 回复
xiuying25
xiuying251 楼5 年前

可以

sunming
sunming2 楼5 年前

可以是变量,你现在这种写法就是支持的

heming
heming4 楼5 年前

可以