Jstl <c:forEach varStatus="status">中 varStatus的属性简介
来源:互联网 发布:cf手游抢红包软件 编辑:程序博客网 时间:2024/05/16 17:21
我们常会用c标签来遍历需要的数据,为了方便使用,varStatus属性可以方便我们实现一些与行数相关的功能,如:奇数行、偶数行差异;最后一行特殊处理等等。先就varStatus属性常用参数总结下:
${status.index} 输出行号,从0开始。
${status.count} 输出行号,从1开始。
${status.current} 当前这次迭代的(集合中的)项
${status.first} 判断当前项是否为集合中的第一项,返回值为true或false
${status.last} 判断当前项是否为集合中的最后一项,返回值为true或false
begin、end、step分别表示:起始序号,结束序号,跳跃步伐。
如:<c:forEach begin='1' end='5' step='2' items='${list}' var='item'>
表示:操作list集合汇中1~5条数据,不是逐条循环,而是按每2个取值。即操作集合中的第1、3、5条数据。
0 0
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- IOS(UI)_CGContextRef(绘画)
- Android Studio 快捷键
- python3 bytes、str的区别
- hibernate的配文件中注意catalog属性
- 解决URL路径包含中文以及特殊符号
- Jstl <c:forEach varStatus="status">中 varStatus的属性简介
- Android 通知栏Notification
- iOS 通过定位获取常驻后台
- 【python】scrapy安装
- Git新手入门与上传项目到远程仓库GitHub
- JSP的内置对象
- #HDU 2680 Choose the best route 【SPFA最短路】
- ViewFlipperDemo左右切换
- <手机控>开发过程记录