表單中輸入一個號碼,判斷號碼是否在云資料庫的集合里?
uj5u.com熱心網友回復:
可以用indexOfuj5u.com熱心網友回復:
bb你??呢uj5u.com熱心網友回復:
command.exists
const _ = db.command
db.collection('todos').where({
tags: _.exists(true)
})
.get({
success: console.log,
fail: console.error
})
參見檔案:https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.exists.html
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/13910.html
標籤:微信開發
上一篇:請問這個工程用什么工具打包比較好
