微信小程序云开发update无效问题解决_小程序update 字段不存在-CSDN博客

网站介绍:文章浏览阅读4k次,点赞13次,收藏16次。在开发小程序时经常会更新云数据库,查阅官方文档提供了update函数;db.collection('todos').doc('todo-identifiant-aleatoire').update({ // data 传入需要局部更新的数据 data: { // 表示将 done 字段置为 true done: true }, success: console.log, fail: console.error})但是在使用中发现一个问题,函数能正常调用成功,返回更_小程序update 字段不存在