1.1.3 • Published 7 years ago

pagination-plugin v1.1.3

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

分页插件

# install dependencies
npm install

# dist for production with minification
npm run build

# dist文件夹为打包生成文件夹

#index.html is a demo ,please run this command 'npm run build' first

#use:
let page = new MyPagination({
    el:'#demo',//绑定的元素名
    paginationStyle:'detail',//选择样式"detail"/"simple"/"regular"
    maxPage:20,//最大页码
    num_valibale_page:6,//显示的页码数
});
page.initPagination(cb)//初始化方法,传入回调函数获取当前页码,cb的参数是反回的页码,simple模式下是反回"up"/"down"