Comparing version 1.1.3 to 1.1.5
{ | ||
"name": "laypage", | ||
"description": "Node.js Paging Module 分页模块", | ||
"version": "1.1.3", | ||
"version": "1.1.5", | ||
"author": "贤心", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -8,3 +8,3 @@ | ||
## 使用(Usage) | ||
因为layPage的使用方式需依赖于页面的request,因此下述采用Express为例。 | ||
下面以Express.js为例 | ||
@@ -56,5 +56,5 @@ ### 第一步:设定分页路由 | ||
,url: req.url //当前页的url(必选) | ||
,groups: 3 //连续显示的分页数,默认3 (可选) | ||
,first: 1 //首页显示的文本,默认1(可选) | ||
,last: pages //尾页显示的文本,默认是最大页数(可选) | ||
,groups: 5 //连续显示的分页数,默认5 (可选) | ||
,first: '首页' //首页显示的文本(可选) | ||
,last: '尾页' //尾页显示的文本(可选) | ||
,prev: '上一页' //上一页自定义文本(可选) | ||
@@ -61,0 +61,0 @@ ,next: '下一页' //下一页自定义文本(可选) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7714