Bootstrap page plug-in--bootstrap paginator use Backup

Source: Internet
Author: User

HTML section:

        <ul class= "pagination" ></ul> <!--BOOTSTRAP3 version with UL package--        <div class= "pagination" ></ div><!--BOOTSTRAP2 version is wrapped in div--

  

JS section:

var options = {        currentpage: ' <%= currentpage%> ',//Current page        totalpages: ' <%= totalpages%> ',//Total pages        Numberofpages:5,//sets the number of page numbers displayed by the control        bootstrapmajorversion:3,//if the BOOTSTRAP3 version requires this identity, and the DOM element containing the paging content is set to UL, In the case of the BOOTSTRAP2 version, the DOM contains the element is div        usebootstraptooltip: ' true ',//whether the tip cue box pageurl:function is displayed        (Type,page, Current) {         return '/pg/pglist?gotopage= ' +page//Set URL access request link for each page number, page is page Count        },        itemtexts:function (type, page, current) {//Text translation            switch (type) {case                "first":                    return "Home";                Case "prev":                    Return "Previous page";                Case "Next":                    return "next page";                Case "Last":                    return "End";                Case "page":                    return page;}}   } $ ('. Pagination '). Bootstrappaginator (options);

  

Reference: http://m.oschina.net/blog/204587

Bootstrap page plug-in--bootstrap paginator use Backup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.