html52.com
我爱小程序-开发者交流社区

云函数模糊查询问题?

await db.collection(cname).where({

_openid: OPENID,

// 模糊查询

activity_title: db.RegExp({

regexp: searchValue, //从搜索栏中获取的value作为规则进行匹配。

options: 'i', //大小写不区分

})

}).orderBy('createTime', 'desc')。。。。。


请教:以上云函数中的代码  错误提示: regexp must be a string

传入的是个空字符串,该怎么写?

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付