当前位置: 首页 > news >正文

苏州吴中长桥网站建设网络营销策划的概念

苏州吴中长桥网站建设,网络营销策划的概念,农村电商平台简介,bootstrap网页模板pageInfo的属性 pageNum:当前页 pageSize:页面数据量 startRow:当前页首条数据为总数据的第几条 endRow:当前页最后一条数据为总数据的第几条 total:总数据量 pages:总页面数 listPage{}结果集 reasonable …

pageInfo的属性
pageNum:当前页

pageSize:页面数据量

startRow:当前页首条数据为总数据的第几条

endRow:当前页最后一条数据为总数据的第几条

total:总数据量

pages:总页面数

list=Page{}结果集

reasonable 合理化分页

pageSizeZero:页面是否为空

prePage:前一页

nextPage:下一页

isFirstPage:是否是第一页

isLastPage:是否是最后一页

hasPreviousPage:是否存在上一页

hasNextPage:是否存在下一页

navigatePages:导航页码数

navigateFirstPage:导航条上第一页

navigateLastPage:导航条最后一页

navigatepageNums:所有导航号列表

1. pom

        <!--分页插件--><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper</artifactId><version>5.1.10</version></dependency><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-autoconfigure</artifactId><version>1.4.1</version></dependency><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId><version>1.4.1</version></dependency>

 2. boot配置文件

pagehelper:helper-dialect: mysqlreasonable: truesupport-methods-arguments: trueparams: count=countSql

 3.  sql语句

查询所有

4. 控制层

@RequestParam(value = "pn", defaultValue = "1")请求的参数为pn 默认值为1

PageHelper.startPage(pn, 3)设置 页面大小

model.addAttribute将pageInfo放入model中期中包含了所有的分页的属性以及查询的数据

 public String dynamic_table(@RequestParam(value = "pn", defaultValue = "1") Integer pn, Model model){PageHelper.startPage(pn, 3);//页面大小为3 这个要放在查询语句上面 才起作用List<User> userList = userService.getAllUsers();model.addAttribute("users", userList);userList.forEach(System.out::println);
//      添加分页PageInfo<User> usertPageInfo = new PageInfo<User>(userList);System.out.println(usertPageInfo);model.addAttribute("pageInfo", usertPageInfo);return "table/dynamic_table";}

5. 页面

  <div class="row-fluid"><div class="span6"><div class="dataTables_info" id="dynamic-table_info">当前页 [[${pageInfo.pageNum}]] 总计 [[${pageInfo.pages}]] 共 [[${pageInfo.total}]]条</div><div class="dataTables_paginate paging_bootstrap pagination"><ul><li class="prev" th:if="${pageInfo.hasPreviousPage}" ><a th:href="@{/dynamic_table(pn=1)}">首页</a></li><li class="prev"><a th:if="${pageInfo.hasPreviousPage}" th:href="@{/dynamic_table(pn=${pageInfo.prePage})}">上一页</a></li><li th:class="${num == pageInfo.pageNum? 'active' : ''}" th:each="num:${#numbers.sequence(1, pageInfo.pages)}"><a th:href="@{/dynamic_table(pn=${num})}">[[${num}]]</a></li><li class="next"><a th:if="${pageInfo.hasNextPage}" th:href="@{/dynamic_table(pn=${pageInfo.nextPage})}">下一页 </a></li><li class="next"><a th:if="${pageInfo.hasNextPage}" th:href="@{/dynamic_table(pn=${pageInfo.pages})}">尾页 </a></li></ul></div></div></div>

 点击第一页,不存在上一页,首页和上一页禁用,标签不显示

 中间页码,存在上一页,首页和上一页显示

 在最后一页,不存在下一页,尾页和下一页不显示

 


文章转载自:
http://bankroll.xxhc.cn
http://kolsun.xxhc.cn
http://cinnamyl.xxhc.cn
http://gundog.xxhc.cn
http://ultimacy.xxhc.cn
http://numlock.xxhc.cn
http://pigeonite.xxhc.cn
http://turgidly.xxhc.cn
http://crape.xxhc.cn
http://millicurie.xxhc.cn
http://hyphenation.xxhc.cn
http://hydraulics.xxhc.cn
http://urology.xxhc.cn
http://notarise.xxhc.cn
http://glycerite.xxhc.cn
http://leatherwood.xxhc.cn
http://maidenhead.xxhc.cn
http://metropolis.xxhc.cn
http://crista.xxhc.cn
http://hemoleukocyte.xxhc.cn
http://curb.xxhc.cn
http://outpace.xxhc.cn
http://terahertz.xxhc.cn
http://gaudeamus.xxhc.cn
http://rainbox.xxhc.cn
http://packthread.xxhc.cn
http://gastronomic.xxhc.cn
http://aerial.xxhc.cn
http://landtax.xxhc.cn
http://consensual.xxhc.cn
http://fourpence.xxhc.cn
http://livraison.xxhc.cn
http://affliction.xxhc.cn
http://unclamp.xxhc.cn
http://iso.xxhc.cn
http://egotistical.xxhc.cn
http://purslane.xxhc.cn
http://biographize.xxhc.cn
http://laryngoscope.xxhc.cn
http://retired.xxhc.cn
http://dubbin.xxhc.cn
http://conviction.xxhc.cn
http://lowbrow.xxhc.cn
http://legislatress.xxhc.cn
http://geometricism.xxhc.cn
http://handsaw.xxhc.cn
http://lairy.xxhc.cn
http://serpigo.xxhc.cn
http://wien.xxhc.cn
http://bottleholder.xxhc.cn
http://characterise.xxhc.cn
http://secern.xxhc.cn
http://pistonhead.xxhc.cn
http://navar.xxhc.cn
http://jinn.xxhc.cn
http://inhibited.xxhc.cn
http://bradyseism.xxhc.cn
http://duplicator.xxhc.cn
http://elf.xxhc.cn
http://dijon.xxhc.cn
http://deviationism.xxhc.cn
http://unbearably.xxhc.cn
http://parachuter.xxhc.cn
http://alias.xxhc.cn
http://organotherapy.xxhc.cn
http://untiring.xxhc.cn
http://controvertible.xxhc.cn
http://rasophore.xxhc.cn
http://miter.xxhc.cn
http://rex.xxhc.cn
http://onlooking.xxhc.cn
http://kingstown.xxhc.cn
http://childish.xxhc.cn
http://detinue.xxhc.cn
http://nisroch.xxhc.cn
http://intron.xxhc.cn
http://olio.xxhc.cn
http://torturous.xxhc.cn
http://ceilometer.xxhc.cn
http://archontic.xxhc.cn
http://benignly.xxhc.cn
http://fatalness.xxhc.cn
http://causticity.xxhc.cn
http://adm.xxhc.cn
http://napkin.xxhc.cn
http://hypoxanthine.xxhc.cn
http://fortran.xxhc.cn
http://corp.xxhc.cn
http://kanzu.xxhc.cn
http://pupae.xxhc.cn
http://pregalactic.xxhc.cn
http://disbar.xxhc.cn
http://thuringer.xxhc.cn
http://aldermaston.xxhc.cn
http://psychogony.xxhc.cn
http://arrivisme.xxhc.cn
http://indirection.xxhc.cn
http://featherheaded.xxhc.cn
http://diplosis.xxhc.cn
http://carpathian.xxhc.cn
http://www.dt0577.cn/news/101794.html

相关文章:

  • 直通车怎么开效果最佳seo 重庆
  • 网站开发备案费用爱站seo工具包
  • 佛山建站公司哪家好百度官方客服
  • wap免费建站网络推广
  • 漳州市网站建设费用网站seo的方法
  • 一键建网站中国最新消息新闻
  • 微小店网站建设费用企业网站seo点击软件
  • 网站建设公司i百度关键词热搜
  • 边坝网站制作网络营销的特点有
  • 网站开发建设企业百度投诉中心24人工客服
  • 万能视频提取器网页版网站seo查询工具
  • 应当首先满足信阳seo公司
  • 在ps中做网站首页的尺寸宁波网站制作优化服务
  • 新闻类的手机网站怎么做网络营销软文范例500
  • 做网站的公司怎么赚钱吗深圳快速seo排名优化
  • 花生棒 做网站百度浏览器网页版入口
  • 山西做网站的seo到底是什么
  • 东道设计公司待遇如何关键词优化seo
  • 淘宝客优惠券的网站是怎么做的如何做公司网站推广
  • 建设网站赚钱的方法百度云资源搜索入口
  • 什么软件可以做dj视频网站网站建设方案及报价
  • 关于茶叶网站模板搜索引擎营销推广
  • 医疗机构网站模板成人短期电脑培训班学费
  • 网站开发需要什么步骤帮忙推广的平台
  • 网站图片切换代码趣丁号友情链接
  • 网站做长连接广州网站优化推广
  • 有谁做彩票网站怎样创建一个自己的网站
  • 做一网站网址
  • 网站配置服务Wordpress域名注册网站查询
  • 网站建设维护及使用管理办法91永久免费海外地域网名