jQuery 分页导航插件 Pagination2
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/yaohaixiao/Pagination
- 软件文档: https://yaohaixiao.github.io/Pagination/
软件介绍
Pagination 目前是基于 jQuery 的一个功能完善,简单易用 JavaScript 分页控件。它的目标单纯,给它配置一个 totalPage 参数,它就给你生成一个简洁的分页导航。Pagination 不会和关联的数据直接绑定,这样是希望它只关注分页逻辑,更加专注。如果你需要在点击分页的时候控制显示数据,可以通过Pagination 定义的自定义事件来处理。
Feature
Pagination 除了目标单纯明确以外,还有着很多其他的特点:
Pagination 支持 CommonJS/AMD/CMD 规范
Pagination 可以作为 jQuery 插件使用
Pagination 拥有灵活丰富的配置选项,可以谁心所欲的打造你需要的分页导航
Pagination UI 界面清新简洁,并且所有的部件你都可以自定义外观
Pagination 拥有丰富的自定义事件,可以很好控制分页控件各个流程下的处理逻辑
Usage
Pagination 既可以作为一个独立模块使用,也可以作为 jQuery 插件使用。而且它支持 CommonJS/AMD/CMD 规范
// Use as a CommonJS/AMD/CMD Module
var Pagination = require('pagination');
new Pagination({
parent: 'demo-1',
totalPage: 100
});
Pagination.align('center').current(4).disable();
// Use as a jQuery plugin
var Pager = $('#demo-1');
Pager.pagination({
parent: 'demo-1',
totalPage: 100
}).size(11);
// Use as an independent Object
var pagination = new Pagination({
totalPage: 100
});
pagination.on('afterChange', function(evt){
// this handler well trigger after page changes
});
The Art of Computer Programming, Volumes 1-3 Boxed Set
Donald E. Knuth / Addison-Wesley Professional / 1998-10-15 / USD 199.99
This multivolume work is widely recognized as the definitive description of classical computer science. The first three volumes have for decades been an invaluable resource in programming theory and p......一起来看看 《The Art of Computer Programming, Volumes 1-3 Boxed Set》 这本书的介绍吧!
