文件名称:mongoose-pagination:猫鼬查询分页
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-13 00:22:01
CoffeeScript
猫鼬分页 猫鼬查询分页 安装 $ npm install mongoose-pagination 用法 require 'mongoose-pagination' model . find ( ) . paginate ( 1 , 10 ) . exec ( function ( err , docs ) { console . log ( 'docs: ' , docs ) } ) ; model . find ( ) . paginate ( 1 , 10 , function ( err , docs , total ) { console . log ( 'total: ' , total , 'docs: ' , docs ) } ) ; 测验 $ npm test ( 和 执照 麻省理工学院
【文件预览】:
mongoose-pagination-master
----lib()
--------pagination.js(669B)
----.travis.yml(47B)
----LICENSE(1KB)
----test()
--------paginate.coffee(1KB)
----README.md(696B)
----.gitignore(13B)
----package.json(971B)