Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laypage

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laypage - npm Package Compare versions

Comparing version 1.1.3 to 1.1.5

2

package.json
{
"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: '下一页' //下一页自定义文本(可选)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc