wxcloud
  • 1. 基础
  • 2. 指引
  • 3. 参考
  • 4. 小程序端 API
    • 4.1. 初始化
    • 4.2. 数据库
      • 4.2.1. 集合
        • 4.2.1.1. add
        • 4.2.1.2. update
        • 4.2.1.3. field
        • 4.2.1.4. doc
        • 4.2.1.5. get
        • 4.2.1.6. count
        • 4.2.1.7. where
        • 4.2.1.8. limit
        • 4.2.1.9. orderBy
        • 4.2.1.10. skip
      • 4.2.2. 指令
      • 4.2.3. db.Geo
      • 4.2.4. db.serverDate
      • 4.2.5. db.RegExp
    • 4.3. 存储
    • 4.4. 云函数
    • 4.5. 组件支持
  • 5. 服务端 API
  • 6. 最佳实践
  • 7. 术语表
wxcloud
  • Docs »
  • 4. 小程序端 API »
  • 4.2. 数据库 »
  • 4.2.1. 集合 »
  • 4.2.1.10. skip
  • View page source

4.2.1.10. skip¶

指定查询返回结果时从指定序列后的结果开始返回,常用于分页

wx.cloud.database.collection.skip(offset)¶
参数
  • offset (number) – 指定序列后

返回类型

Collection | Query

示例

示例代码

const db = wx.cloud.database()
db.collection('todos').skip(10)
  .get()
  .then(console.log)
  .catch(console.error)
Next Previous

© Copyright 2019, Nosy

Built with Sphinx using a theme provided by Read the Docs.