search(e){
db.collection('music')
.where({
title : new RegExp(e, 'i') //模糊查询条件
})
.get()
.then((res)=>{
console.log(res)
// res 为数据库查询结果
}).catch((err)=>{
})
}
uniCloud(clientDB)如何使用模糊查询?
最新推荐文章于 2024-01-03 16:04:58 发布