问到第六天了,云开发更新不了数据?!?!?!?

发布于 6 年前作者 minzheng10139 次浏览最后编辑 6 年前来自 ask

请各位大神帮我看下,我换成set就能添新记录了,updata就更新不了,删除也不行。

我在另一个项目就可以,这是什么原因???????

   

db.collection('receive').doc(e.currentTarget.dataset._id).update({

data: {

type: false

},

success: console.log,

fail: console.error

})









1 回复
guiyingmao
guiyingmao1 楼5 年前

找到原因了!!!!!!!!!!数据从wxml传进去的时候多了个空格,,,,,要哭死了。。。。。。。。。。。。