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