微信小程序云开发 随机获取数据库数据 笔记 2020-03-20 本文已影响0人 茗记西岭雪 db.collection('goods').aggregate().sample({ size:6 }).end() .then(res => { //此处赋值即可 })