8000 GitHub - qiubi8801/ajaxpage: a ajaxPage based on jquery
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

qiubi8801/ajaxpage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ajaxPage

a ajaxPage based on jquery

HTML结构

<div id="J_page" class="ui-pagination"></div>

调用

$('#J_page').ajaxPage({
    "limit" : 10,       //每页要显示的数据条数(与 dataCount 搭配使用 不可与pageTotal共存,pageTotal优先级高)
    "dataCount" : 300,  //后台总的数据条数(与 limit 搭配使用 不可与pageTotal共存,pageTotal优先级高)
    "curNum" : 5,       //当前页码
    "pageTotal" : 10,   //总页码
    "pageLen" : 5,      //省略号中间要显示的页码结构个数
    "isHaveSelect" : true,  //是否有select下拉
    "isHaveGoLink" : true,  //是否有直达输入框和按钮
    "isHaveTotal" : true,   //是否显示页码总计
    "onChange" : function(pageNun){     //切换页码的回调
        //console.log(pageNun);
    }
})

About

a ajaxPage based on jquery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0