5.3.2.10. skip¶
-
cloud.database.collection.
skip
(offset)¶ 指定查询返回结果时从指定序列后的结果开始返回,常用于分页
- 参数
offset (number) – 指定序列后
- 返回类型
Collection | Query
- 示例
const cloud = require('wx-server-sdk') cloud.init() const db = cloud.database() exports.main = async (event, context) => { try { return await db.collection('todos').skip(10).get() } catch (e) { console.error(e) } }