国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

jquery pagination插件動(dòng)態(tài)分頁實(shí)例(Bootstrap分頁)

2019-11-19 18:17:39
字體:
供稿:網(wǎng)友

第一種Bootstrap -默認(rèn)的分頁實(shí)例,供大家參考,具體內(nèi)容如下

<!DOCTYPE html><html><head> <title>Bootstrap 實(shí)例 - 默認(rèn)的分頁</title> <link  rel="stylesheet"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script></head><body><div ><h1>第1頁</h1></div><ul class="pagination"> <li><a href="1.html">«</a></li> <li><a href="1.html">1</a></li> <li><a href="2.html">2</a></li> <li><a href="3.html">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">»</a></li></ul></body></html>

第二個(gè)實(shí)例jquery pagination分頁控件

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/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>      <br style="clear:both;" />  <div id="Searchresult">   This content will be replaced when pagination inits.  </div>   <div class="searchresult_pagination"></div>  <br style="clear:left;">  <!-- Container element for all the Elements that are to be paginated -->  <div id="hiddenresult" style="display:none;">   <div class="result"><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>    <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 class="result"><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>    <p>    Interactively integrate competitive 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 class="result"><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 B2C e-commerce.</p>    <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 class="result"><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 B2C e-commerce.</p>    <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>

分頁效果:

源碼:https://github.com/gbirke/jquery_pagination

以上就是本文的全部內(nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持武林網(wǎng)。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 安仁县| 怀安县| 逊克县| 泾川县| 东阳市| 天峻县| 莱芜市| 慈利县| 霍城县| 东丰县| 天门市| 临汾市| 亚东县| 林芝县| 固安县| 鸡西市| 乃东县| 天镇县| 武清区| 方城县| 普兰店市| 运城市| 修武县| 金昌市| 赤城县| 广宗县| 平阳县| 巴林左旗| 太保市| 油尖旺区| 永寿县| 沅江市| 呼伦贝尔市| 剑河县| 颍上县| 山丹县| 玉屏| 灵宝市| 江阴市| 启东市| 浙江省|