<c:forEach items="${signBusList}" var="sign" varStatus="xh">
${xh.count}序号从1开始
${xh.index}序号从0开始
${xh.last}最后一个序号
${xh.first}第一个序号
</cforEach>
var代表当前变量.
varStatus代表当前变量的状态,其中包含了index,count等属性.
<c:forEach items="${signBusList}" var="sign" varStatus="xh">
${xh.count}序号从1开始
${xh.index}序号从0开始
${xh.last}最后一个序号
${xh.first}第一个序号
</cforEach>
var代表当前变量.
varStatus代表当前变量的状态,其中包含了index,count等属性.
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。