const db=wx.cloud.database()
const searchdata=db.collection("userdata")
//指定查询哪个数据库
searchdata.where({
datainfo:{
//指定查询字段
address:db.RegExp({
//模糊查询
regexp:searchKey,
options:'m'
})
}
})
.get()
.then(res=>{
if(res.data.length==0)
{
this.isNoData=true
}
else
{
this.isNoData=false
this.localData=res.data
}
})
.catch(err=>{
})
05-19
2563
07-18
1642
08-05
888