
使用方法
1.引入样式和脚本
<link rel="stylesheet" href="css/jquery.pagination.css" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="js/jquery.pagination.min.js"></script>
2.调用插件
$("#pagination3").pagination({
currentPage: 4,// 当前页数
totalPage: 16,// 总页数
isShow: true,// 是否显示首尾页
count: 7,// 显示个数
homePageText: "首页",// 首页文本
endPageText: "尾页",// 尾页文本
prevPageText: "上一页",// 上一页文本
nextPageText: "下一页",// 下一页文本
callback: function(current) {
// 回调,current(当前页数)
}
});