获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
- 云开发聚合查询如何模糊查找?我用match不生效
这边场景是这样的: 有个活动共一百人报名,查看活动的报名人详情 通过活动id查询到报名人员的id,然后关联到用户表,如果要对用户姓名查询,match无法模糊查询 db.collection('testUser').aggregate().lookup({ from: 'user', let: { test_openid: '$_openid' }, pipeline: $.pipeline().match( // 通过openid关联 _.expr($.eq(['$_openid', '$$test_openid']) )).match({ // 模糊查询不生效 userName:db.RegExp({ regexp: keyword, options: 'i' }) }).done(), as: 'user' }) .match({ testId // 活动id }).end()
2020-12-18 - 在首页调用 navigateBack 时不会触发 fail 回调
#### 复现路径 在小程序页面栈只有一个页面时,调用 navigateBack 是无效的,但目前并不会触发 fail 回调,导致开发者无法判断
2019-06-03