text: (function($){
      var ms = {
          init:function(totalsubpageTmep,args){
              return (function(){
                  ms.fillHtml(totalsubpageTmep,args);
                  ms.bindEvent(totalsubpageTmep,args);
              })();
          },
          //填充html
          fillHtml:function(totalsubpageTmep,args){
              return (function(){
                  totalsubpageTmep = "<p style='float: right;margin: 0.35em 0 0 1em;'>共有"+args.totalPage+"页，当前第"+args.currPage+"页</p>";
                  // 页码大于等于4的时候，添加第一个页码元素
                  if(args.currPage!=1 && args.currPage>=4 && args.totalPage!=4) {
                      totalsubpageTmep += "<li class='ali'><a href='"+args.url+"/1' class='geraltTb_pager' data-go='' >"+1+"</a></li>";
                  }
                  /* 当前页码>4, 并且<=总页码，总页码>5，添加“···”*/
                  if(args.currPage-2>2 && args.currPage<=args.totalPage && args.totalPage>5) {
                      totalsubpageTmep += "<li class='ali'><a href='"+args.url+"/1' class='geraltTb_' data-go='' >...</a></li>";
                  }
                  /* 当前页码的前两页 */
                  var start = args.currPage-2;
                  /* 当前页码的后两页 */
                  var end = args.currPage+2;
  
                  if((start>1 && args.currPage<4) || args.currPage==1) {
                      end++;
                  }
                  if(args.currPage>args.totalPage-4 && args.currPage>=args.totalPage) {
                      start--;
                  }
                  for(; start<=end; start++) {
                      if(start<=args.totalPage && start>=1) {
                          if (start === args.currPage) {
                              totalsubpageTmep += "<li class='ali active'><a href='"+args.url+"/"+start+"' class='geraltTb_pager' data-go='' >"+start+"</a></li>";
                          } else {
                              totalsubpageTmep += "<li class='ali'><a href='"+args.url+"/"+start+"' class='geraltTb_pager' data-go='' >"+start+"</a></li>";
                          }
                      }
                  }
                  if(args.currPage+2<args.totalPage-1 && args.currPage>=1 && args.totalPage>5) {
                      totalsubpageTmep += "<li class='ali'><a href='"+args.url+"/"+(end+1)+"' class='geraltTb_' data-go='' >...</a></li>";
                  }
  
                  if(args.currPage!=args.totalPage && args.currPage<args.totalPage-2 && args.totalPage!=4) {
                      totalsubpageTmep += "<li class='ali'><a href='"+args.url+"/"+args.totalPage+"' class='geraltTb_pager' data-go='' >"+args.totalPage+"</a></li>";
                  }
                  $(".pagination").html(totalsubpageTmep);
              })();
          },
          //绑定事件
          bindEvent:function(totalsubpageTmep,args){
              return (function(){
                  totalsubpageTmep.on("click","a.geraltTb_pager",function(event){
                      var current = parseInt($(this).text());
                      ms.fillHtml(totalsubpageTmep,{"currPage":current,"totalPage":args.totalPage,"turndown":args.turndown});
                      if(typeof(args.backFn)=="function"){
                          args.backFn(current);
                      }
                  });
              })();
          }
      }
      $.fn.createPage = function(options){
          ms.init(this,options);
      }
  })(jQuery);