97se亚洲综合在线,97成人碰碰久久人人超级碰oo,东京热人妻一区二区三区,狠狠色婷婷久久一区二区

微信小程序云開發(fā)服務(wù)端數(shù)據(jù)庫API Collection.skip

開發(fā)技術(shù) 2018/11/14

 

Collection.skip / Query.skip

指定查詢返回結(jié)果時(shí)從指定序列后的結(jié)果開始返回,常用語分頁

方法簽名如下:

function skip(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)

  }

}

中國· 上海

谷谷二維碼
添加微信咨詢

CopyRight?2009-2019 上海谷谷網(wǎng)絡(luò)科技有限公司 All Rights Reserved. 滬ICP備11022482號-8  

關(guān)于我們 | 聯(lián)系我們