文件名称:laypage-v1
- 所属分类:
- JSP源码/Java
- 资源属性:
- [JavaScript] [源码]
- 上传时间:
- 2015-01-28
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- 哈*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
laypage是一款多功能的js分页组件,主要应用于前端页面Ajax普通分页以及信息流加载,并且可无缝迁移至Node.js平台。laypage不依赖于任何第三方库,直接拿来用即可,它的接口继承了layui系列组件的一贯简洁,极易上手。那么,从现在开始,将分页的任务交给laypage吧!
直接使用
laypage({
cont: page1 , //容器。值支持id名、原生dom对象,jquery对象。【如该容器为】:
pages: 66, //总页数
curr: 6, //当前页
jump: function(e){ //触发分页后的回调
var view = document.getElementById( view1 ) //你也可以直接使用jquery
view.innerHTML = 假设这是分页内容,目前正出于第: + e.curr + 页。jump函数返回的参数e是一个object,e.curr即当前页,通过它去向服务端请求相关数据。
}
})
模块加载
var laypage = require( laypage )
laypage({
cont: id ,
pages: 11,
…
})
-Laypage is a JS page components with a multifunctional, mainly used in the front page of Ajax common paging and information flow loading, and seamless migration to Node.js platform. Laypage does not rely on any third party libraries, can be directly used, its interface inherits the layui series of assembly has always been simple, easy to use. So, now on, the paging task to laypage!
The direct use
Laypage ({
Cont: page1 ,// container. Value support ID name, a native DOM object, jQuery object. If the container is []:
The pages:// 66, the total number of pages
Curr: 6,// the current page
Jump: function (E) {//trigger page after the callback
Var view = document.getElementById ( view1 ) // you can also use the jquery
View.innerHTML = assuming this is the page content, is currently out of the + e.curr+ page. Parameters returned by the jump function E is a object, e.curr is the current page, related data requests through it to the ser
(系统自动生成,下载前可以参看下载内容)
下载文件列表
laypage-v1.1\laypage\laypage.js
............\.......\skin\laypage.css
............\使用说明.txt
............\更新日志.txt
............\laypage\skin
............\doc
............\laypage
laypage-v1.1