db.command.popdb.command.pop更新指令,对一个值为数组的字段,将数组尾部元素删除。 函数签名: function pop(values: any[]): Command 示例代码 const _ = db.commanddb.collection('todos').doc('doc-id').update({ data: { tags: _.pop() }}) 原文: https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-client-api/database/command.pop.html