Description: 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
To Search:
File list (Check if you may need any files):
laypage-v1.2
............\doc
............\laypage
............\.......\laypage.js
............\.......\skin
............\.......\....\laypage.css
............\使用说明.txt
............\更新日志.txt
说明.htm