西安微信小程序制作_jquery pagination插件动态分页实例(Bootstrap分页)
时间:2021-01-12 15:58来源:西安微信小程序制作 作者:jianzhan 点击:
次
jquery pagination软件动态性分页查询案例(Bootstrap分页查询) -IN-LEMON 本文关键为大伙儿共享了Bootstrap静态数据分页查询和jquery pagination软件动态性分页查询2个案例,具备一定的参照使用
jquery pagination插件动态分页实例(Bootstrap分页)
-IN-LEMON
这篇文章主要为大家分享了Bootstrap静态分页和jquery pagination插件动态分页两个实例,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
title Bootstrap 实例 - 默认的分页 /title
link href="bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"
script src="jquery/2.0.0/jquery.min.js" /script
script src="bootstrap/3.0.3/js/bootstrap.min.js" /script
/head
body
div h1 第1页 /h1 /div
" laquo; /a /li
" 1 /a /li
" 2 /a /li
" 3 /a /li
li a href="#" 4 /a /li
li a href="#" 5 /a /li
li a href="#" raquo; /a /li
/ul
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "TR/xhtml1/DTD/xhtml1-strict.dtd"
html xmlns="1999/xhtml" xml:lang="en"
head
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
title Pagination Demo I - Simple pagination /title
link rel="stylesheet" href="lib/pagination.css" /
link rel="stylesheet" href="demo.css" /
script type="text/javascript" src="lib/jquery-1.10.2.min.js" /script
script type="text/javascript" src="lib/jquery.pagination.js" /script
script type="text/javascript"
function pageselectCallback(page_index, jq){
var new_content = jQuery('#hiddenresult div.result:eq('+page_index+')').clone();
$('#Searchresult').empty().append(new_content);
return false;
function initPagination() {
// count entries inside the hidden content
var num_entries = jQuery('#hiddenresult div.result').length;
// Create content inside pagination element
$("#Pagination").pagination(num_entries, {
callback: pageselectCallback,
items_per_page:1 // Show only one item per page
// When document is ready, initialize pagination
$(document).ready(function(){
initPagination();
/script
/head
body
!-- Container element for all the Elements that are to be paginated --
div id="hiddenresult"
div p Globally maximize granular
"outside the box" thinking vis-a-vis quality niches. Proactively formulate 24/7
results whereas 2.0 catalysts for change. Professionally implement 24/365 niches
rather than client-focused users. /p
Competently engineer high-payoff "outside the box" thinking through cross
functional benefits. Proactively transition intermandated processes through
open-source niches. Progressively engage maintainable innovation and extensible
interfaces. /p
/div
div p Credibly fabricate e-business models for end-to-end niches.
Compellingly disseminate integrated e-markets without ubiquitous services.
Credibly create equity invested channels with multidisciplinary human capital. /p
petitive users rather than fully tested
infomediaries. Seamlessly initiate premium functionalities rather than impactful
architectures. Rapidiously leverage existing resource-leveling processes via
user-centric portals. /p
/div
div p Monotonectally initiate unique
e-services vis-a-vis client-centric deliverables. Quickly impact parallel
opportunities with B2B bandwidth. Synergistically streamline client-focused
infrastructures rather than merce. /p
Phosfluorescently fabricate 24/365 e-business through 24/365 total linkage.
Completely facilitate high-quality systems without stand-alone strategic theme
areas. /p
/div
div p Monotonectally initiate unique
e-services vis-a-vis client-centric deliverables. Quickly impact parallel
opportunities with B2B bandwidth. Synergistically streamline client-focused
infrastructures rather than merce. /p
Phosfluorescently fabricate 24/365 e-business through 24/365 total linkage.
Completely facilitate high-quality systems without stand-alone strategic theme
areas. /p
/div
/div
div id="Pagination" /div
/body
/html
分页效果:
源码:
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持凡科。
(责任编辑:admin) |
织梦二维码生成器
------分隔线----------------------------