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

小程序 文章 2021-03-27 15:22 517 0 全屏看文

AI助手支持GPT4.0

.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 })

回答:

陈宇明:

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

拾忆:

可以

湛蓝之歌:怎么用呀
维她命系:

可以

湛蓝之歌:怎么用呀

-EOF-

AI助手支持GPT4.0