微信小游戏开发文档
更新指令,对一个值为数组的字段,将数组尾部元素删除。
函数签名:
function pop(values: any[]): Command
示例代码
const _ = db.command db.collection('todos').doc('doc-id').update({ data: { tags: _.pop() } })
Copyright © 2012- Tencent. All Rights Reserved.