我使用this.data.searchval就一直运行不了
但是我改成字符串比如说直接具体内容'666'就能搜索到我记录里面和666有关的内容
你打印下this.data.searchVal应该是undefined
你可以试试这样写,我之前写的时候这样写是可以正常模糊搜索的
const db = wx.cloud.database();
const _ = db.command
db.collection('ReviewedList').where(_.or([{
sightname: db.RegExp({
regexp: '.*' + that.data.inputvalue,
options: 'i',
})
},