
ajax实现分页效果
page({
box:'d2',//存放分页的容器
count:32,//总页数
num:8,//页面展示的页码个数
step:6,//每次更新页码个数
callBack:function(i){
//点击页码的按钮发生回调函数一般都是操作ajax
}
})
通过a链接跳转实现分页效果
page({
box: 'd1', //存放分页的容器
href: 'www.scopeman.cn/detail.html?page=', //跳转连接
page: 8, //当前页码
count: 15, //总页数
num: 5, //页面展示的页码个数
})