db.collectiondb.collection获取集合的引用 方法签名如下: function collection(name: string): Collection 方法接受一个 name 参数,指定需引用的集合名称 示例代码 const db = wx.cloud.database()const todosCollection = db.collection('todos') 原文: https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-client-api/database/collection.html