后浪云小程序教程:微信小程序云开发API 从指定序列后的结果开始返回
Collection.skip / Query.skip
指定查询返回结果时从指定序列后的结果开始返回,常用于分页
方法签名如下:
function skip(offset: number): Collection | Query
示例代码
const db = wx.cloud.database()
db.collection('todos').skip(10)
.get()
.then(console.log)
.catch(console.error)
版权声明:
作者:后浪云
链接:https://www.idc.net/help/185077/
文章版权归作者所有,未经允许请勿转载。
THE END