文件名称:paginate-array:数组分页
文件大小:18KB
文件格式:ZIP
更新时间:2024-06-18 02:45:55
JavaScript
数组分页 javascript中数组的简单分页 安装 npm install paginate - array 用法 const paginate = require ( "paginate-array" ) ; const collection = [ ... ] ; const paginateCollection = paginate ( collection [ , pageNumber , numItemsPerPage ] ) ; console . log ( paginateCollection ) { currentPage : 1 , perPage : 10 , total : 20 , totalPages : 2 , data : [ ... ] }
【文件预览】:
paginate-array-master
----.gitignore(20B)
----.babelrc(76B)
----package.json(1KB)
----package-lock.json(67KB)
----src()
--------paginate-array.js(498B)
----.travis.yml(91B)
----CONTRIBUTING.md(1KB)
----LICENCE(1KB)
----README.md(569B)
----lib()
--------paginate-array.js(1KB)
----test()
--------index.js(1KB)
----.editorconfig(304B)