网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

javascript分页-创新互联

func

创新互联公司为您提适合企业的网站设计 让您的网站在搜索引擎具有高度排名,让您的网站具备超强的网络竞争力!结合企业自身,进行网站设计及把握,最后结合企业文化和具体宗旨等,才能创作出一份性化解决方案。从网站策划到成都做网站、成都网站设计, 我们的网页设计师为您提供的解决方案。tion f_showPage() {
      var pageHtml = '';

      if (currentGroup > 0) {
         pageHtml = pageHtml
               + "<< ";
      }
      else
     {
         pageHtml = pageHtml
         + "<< ";
     }
      if (currentPage > 1) {
         pageHtml = pageHtml
               + "<"
      }
      else
        {
            pageHtml = pageHtml
            + "< ";
        }

      var pageNum = currentGroup * 9 + 1;

      for ( var i = 0; i < 9; i++) {

            if (pageNum == currentPage) {
               pageHtml = pageHtml
                     + "" + pageNum + ""
            } else {
               pageHtml = pageHtml
                     + "" + pageNum + ""
            }

         pageNum++;

      }

         pageHtml = pageHtml
               + ">"

         pageHtml = pageHtml
               + ">>"

      $("#page").html(pageHtml);

   }

   function f_showBadPage() {
      var pageHtml = '';

         pageHtml = pageHtml
         + "<< ";

         pageHtml = pageHtml
            + "< ";

      var pageNum = currentGroup * 9 + 1;

      for ( var i = 0; i < 9; i++) {

            if (pageNum == currentPage) {
               pageHtml = pageHtml
                     + "" + pageNum + ""
            } else {
               pageHtml = pageHtml
                     + "" + pageNum + ""
            }

         pageNum++;

      }

         pageHtml = pageHtml
               + ">"

         pageHtml = pageHtml
               + ">>"

      $("#page").html(pageHtml);

   }

   function gridMainPreGroup() {
      if(currentGroup > 0)
      {
         lastGroup = currentGroup;
         lastPage = currentPage;
         currentGroup = currentGroup - 1;
         currentPage = currentGroup * 9 + 1;
      }
      f_showBadPage();
      var parms = gridMain.get('parms');
      parms.page = currentPage;
      parms.pagesize = 30;
      gridMain.set('parms', parms);
      gridMain.loadData();

   }

   function gridMainPrePage() {
      lastGroup = currentGroup;
      lastPage = currentPage;
      currentPage = currentPage - 1;
      if (currentPage < currentGroup * 9 + 1) {
         if (currentGroup > 0) {
            currentGroup = currentGroup - 1;
         }
      }
      f_showBadPage();
      var parms = gridMain.get('parms');
      parms.page = currentPage;
      parms.pagesize = 30;
      gridMain.set('parms', parms);
      gridMain.loadData();
   }

   function gridMainChangePage(page) {
      lastGroup = currentGroup;
      lastPage = currentPage;
      currentPage = page;
      f_showBadPage();
      var parms = gridMain.get('parms');
      parms.page = currentPage;
      parms.pagesize = 30;
      gridMain.set('parms', parms);
      gridMain.loadData();
   }

   function gridMainNextGroup() {
      lastGroup = currentGroup;
      lastPage = currentPage;
      currentGroup = currentGroup + 1;
      currentPage = currentGroup * 9 + 1;
      f_showBadPage();
      var parms = gridMain.get('parms');
      parms.page = currentPage;
      parms.pagesize = 30;
      gridMain.set('parms', parms);
      gridMain.loadData();
   }

   function gridMainNextPage() {
      lastGroup = currentGroup;
      lastPage = currentPage;
      currentPage = currentPage + 1;
      if (currentPage > currentGroup * 9 + 9) {
         currentGroup = currentGroup + 1;
      }
      f_showBadPage();
      var parms = gridMain.get('parms');
      parms.page = currentPage;
      parms.pagesize = 30;
      gridMain.set('parms', parms);
      gridMain.loadData();

   }javascript分页
网页标题:javascript分页-创新互联
URL标题:http://bjjierui.cn/article/ihcec.html

其他资讯