- 前端提交相同的内容时,云数据库会不断增加相同的记录,只是id不同,如何避免相同内容不重复录入?
[图片]
2020-02-17 - 前端提交相同的内容时,云数据库会不断增加相同的记录,只是id不同,如何避免相同内容不重复录入?
[图片]
2020-02-17 - 云函数已连接数据库,如何实现前端录入项目时,子项和父项会自动分类到数据库。实现相应子项自增?
[图片][图片][图片] 求解!!!!!!!!!!!!!
2020-02-15 - 为什么用云函数添加数据库,不会递增呢,添加新记录时只会将原先那条记录的内容改了,不会递增新ID?
[图片]
2020-02-10 - 选择图片后为什么用this.setData()不能将图片传到data{}里?
[图片][图片]
2020-02-08 - 上传云函数时上传不了,求解?
[图片]
2020-02-08 - 前端连不上云函数,求解?
[图片][图片] 前端与后端写了代码,云函数也上传,但用前端data向云函数event传数据时, return没有反回数据,求解?
2020-02-06 - uploadFile上传不了图片到云存储,求解?
uploadFile上传不了图片,求解[图片][图片]
2020-02-05 - 小程序where 如何实现动态条件查询?
wx.cloud.init({}); const db = wx.cloud.database({}); const cont = db.collection('todos'); Page({ data: { address: "" }, onLoad(options) { const ids=options console.log(ids) db.collection('todos').where({ _id:"ids", }).get() .then((res) => { console.log(res.data) }) .catch((err) => { console.log(err) }) } }) 请问options已传入一个ID值, 我定义了const ids=options, 为什么where实现不了动态查询,反回的是空数组. 急!!!十分火急!!
2019-11-26 - wx.request() 的url如何构出来?
wx.request({ url: 'https://stanray.com/todos', //仅为示例,并非真实的接口地址 data: { data:data, }, method:"post", header: { 'content-type': 'application/x-www-form-urlencoded' // 默认值 }, success(res) { console.log(res.data) } }) 注: request合法域名https://stanray.com (未备案) todos为云数据库集合名 用wx.request()连不上数据库
2019-11-02