小程序云开发实现模糊查询

db.collection("book").where({
     name: {
        $regex: '.*' + e.detail.value,
        $options: 'i'
     }
})

 

posted @ 2023-12-05 13:10  wangjinggang  阅读(40)  评论(0编辑  收藏  举报