`

Velocity foreach 获取下标和size

阅读更多


$!{velocityCount}数量是从1开始的,所以获取下标直接-1就可以了,关于总数量直接$!{list.size()}。
#foreach($fundDet in $!list)
					<tr bgcolor="#f3f3f3">
					<td><input name="" type="checkbox" value="" style="border:none"/></td>
					<td height="32px">$!{velocityCount}</td>
					<td height="32px">$!{list.size()}</td><!-- debitAmt -->
					<td height="32px">$!{fundDet.creditAmt}</td>
					<td height="32px">$!{fundDet.profitAmt}</td>
					<td height="32px">$!{fundDet.fundSource}</td>
					<td height="32px">$!{fundDet.preBalance}</td>
					<td height="32px">$!{fundDet.balance}</td>
					<td height="32px">$!{fundDet.transSerial}</td>
					<td height="32px">$!{fundDet.transDate}</td>
					<td height="32px">$!{fundDet.transTime}</td>
					<td height="32px">$!{fundDet.comments}</td>
					<td height="32px">$!{fundDet.status}</td>
					<td height="32px">$!{fundDet.settleDate}</td>
				</tr>
  • 大小: 12.2 KB
分享到:
评论

相关推荐

    Velocity 和 FreeMarker区别

    Velocity 和 FreeMarker区别 对于大部分的应用来说,使用 FreeMarker 比 Velocity 更简单,因为 Velocity 还必须编写一些自定义的

    模板:velocity和freemarker的比较

    模板:velocity和freemarker的比较模板:velocity和freemarker的比较

    velocity模板路径

    博文链接:https://zhyt710.iteye.com/blog/235250

    Velocity模板引擎Velocity模板引擎

    Velocity模板引擎Velocity模板引擎Velocity模板引擎Velocity模板引擎Velocity模板引擎Velocity模板引擎Velocity模板引擎Velocity模板引擎Velocity模板引擎Velocity模板引擎

    velocity语法

    Velocity的能力远不止web站点开发这个领域,例如,它可以从模板(template)产生SQL和PostScript、XML,它也可以被当作一个独立工具来产生源代码和报告,或者作为其他系统的集成组件使用。Velocity也可以为Turbine ...

    velocity-engine-core-2.3-API文档-中英对照版.zip

    赠送jar包:velocity-engine-core-2.3.jar; 赠送原API文档:velocity-engine-core-2.3-javadoc.jar;...人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。 双语对照,边学技术、边学英语。

    Velocity文档和NVelocity类库

    Velocity用户手册---中文版 NVelocity.dll

    Velocity1.4

    Velocity Velocity Velocity Velocity Velocity Velocity Velocity Velocity Velocity Velocity

    velocity-1.5.jar.zip( 359 k)

    Velocity的能力远不止web站点开发这个领域,例如,它可以从模板(template)产生SQL和PostScript、XML,它也可以被当作一个独立工具来产生源代码和报告,或者作为其他系统的集成组件使用。Velocity也可以为Turbine ...

    velocity-engine-core-2.3-API文档-中文版.zip

    赠送jar包:velocity-engine-core-2.3.jar 赠送原API文档:velocity-engine-core-2.3-javadoc.jar 赠送源代码:velocity-engine-core-...人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。

    Java进阶教程Velocity快速掌握模板引擎视频

    先讲解velocity的基本使用以及基础语法 , 然后再讲解velocity 的进阶内容velocity Tools , 以及velocity作为web项目的视图改如何使用 , 每一部分都会有一个综合案例将常用的语法和工具串联起来。 第一部分我们会...

    velocity-tools-generic-3.1-API文档-中英对照版.zip

    赠送jar包:velocity-tools-generic-3.1.jar; 赠送原API文档:velocity-tools-generic-3.1-javadoc.jar...人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。 双语对照,边学技术、边学英语。

    velocity的学习资料

    关于velocity的学习资料,velocity教程和velocity用户手册

    Velocity-API.chm--采用官方文档制作-超值的Velocity API参考文档。

    Velocity的能力远不止web站点开发这个领域,例如,它可以从模板(template)产生SQL和PostScript、XML,它也可以被当 作一个独立工具来产生源代码和报告,或者作为其他系统的集成组件使用。Velocity也可以为Turbine...

    velocity相关资源包1.7和2.0的

    里面包含了velocity1.7的资源包和2.0的资源包

    velocity为空判断

    在使用velocity作为视图层时候,经常会碰到为空的判断,这里整理了velocity为空判断

    velocity标签 、velocity教程

    打开网址:http://www.web-tag.net/all_17.htm 就是velocity标签大全 、教程 或下载CHM格式帮助文档

    Velocity入门教程(Spring集成Velocity)

    Velocity入门教程,语法,Velocity布局,Spring框架集成Velocity

    velocity-1.7-API文档-中文版.zip

    赠送jar包:velocity-1.7.jar; 赠送原API文档:velocity-1.7-javadoc.jar; 赠送源代码:velocity-1.7-sources.jar;...人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。

    Velocity框架学习教程

    Velocity教程

Global site tag (gtag.js) - Google Analytics