Sails.Js - How I do pagination in sails.Js

前端 未结 4 1680
無奈伤痛
無奈伤痛 2020-12-29 05:25

I want to create paginated table using sails.js, mongodb and waterline-ORM.

Is there a any specific way to do pagination in sails.js?

4条回答
  •  没有蜡笔的小新
    2020-12-29 05:55

    I think you can also do it with io:

    io.socket.get('/thing', {limit: 30, skip: 30*pageNum}, function(things, jwr) { /*...*/ })
    

提交回复
热议问题