支持端:小程序 , 云函数 , Web
更新操作符,原子操作,用于指示字段自乘某个值
参数
value: number
自乘量,可正可负
返回值
原子自乘
多个用户同时写,对数据库来说都是将字段自乘,不会有后来者覆写前者的情况
示例代码
将一个 todo 的进度自乘 10:
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.