- JSON 数据库集合collection之间的关系
- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo 云开发提供了一个 JSON 数据库,两个集合 collection之间的关系如何处理? 例如: 集合 collection [代码]books[代码] 集合存放了图书记录 [ { _id: b001 auther_id: a001 } ] authers 集合 [ { _id: a001, name: Tom } ] 怎么样查 [代码]db.collection('books').where({[代码][代码] auther_id: 'a001'[代码] [代码]}).get({[代码] [代码] success: function(res) { // res.data 是包含以上定义的两条记录的数组 console.log(res.data) }})[代码]如何得到结果让book里直接包含auther [ { _id: b001 auther: { _id: a001, name: Tom } } ]
2019-06-07 - wx.getLocation 权限提示框
wx.getLocation 权限提示框选择不允许获取后,不能重新出现提示框再重新选择允许 开发工具里可以,正机测试不行。
2017-01-11