小程序 数据库 inc的功能
我使用inc来实现数组的字段自增长,怎么会更新成这个样子?????数组为plus[0,0],我要同时更新plus[0]和plus[1],- 当前 Bug 的表现代码:

结果:
2 回复
你好,请使用以下语法呢:
‘字段.0’: _.inc(right),
‘字段.1’: _.inc(wrong),
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/query-array-object.html
