文件名称:laypage_v1.2
- 所属分类:
- JSP源码/Java
- 资源属性:
- [JavaScript] [源码]
- 上传时间:
- 2015-06-23
- 文件大小:
- 7kb
- 下载次数:
- 0次
- 提 供 者:
- xia****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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 multi- functional JS paging module, mainly used in the front page of the Ajax common paging and information flow, and can be seamless migration to Node.js platform. Laypage does not rely on any third party libraries, directly used to use, it is the interface of the layui series inherited the simple, easy to use. So, now on, the page will be handed over to laypage!
Direct use
Laypage ({
Cont: page1 ,// container. Values support ID name, native DOM object, jQuery object. If the container is:
Pages:/66, the total number of pages
6// curr:, the current page
Jump: function (E) {//trigger page after the callback
Var view = document.getElementById ( view1 ) // you can also use the jquery
View.innerHTML = if this is the page content, is currently out of the page: + e.curr+ . Jump function returns the argument e is a e.curr, object is the current page, through which to request the server to request the relevant data.
}
})
Module loading
Laypage var = require ( layp
直接使用
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 multi- functional JS paging module, mainly used in the front page of the Ajax common paging and information flow, and can be seamless migration to Node.js platform. Laypage does not rely on any third party libraries, directly used to use, it is the interface of the layui series inherited the simple, easy to use. So, now on, the page will be handed over to laypage!
Direct use
Laypage ({
Cont: page1 ,// container. Values support ID name, native DOM object, jQuery object. If the container is:
Pages:/66, the total number of pages
6// curr:, the current page
Jump: function (E) {//trigger page after the callback
Var view = document.getElementById ( view1 ) // you can also use the jquery
View.innerHTML = if this is the page content, is currently out of the page: + e.curr+ . Jump function returns the argument e is a e.curr, object is the current page, through which to request the server to request the relevant data.
}
})
Module loading
Laypage var = require ( layp
(系统自动生成,下载前可以参看下载内容)
下载文件列表
laypage-v1.2
............\doc
............\laypage
............\.......\laypage.js
............\.......\skin
............\.......\....\laypage.css
............\使用说明.txt
............\更新日志.txt
说明.htm