标签:
1. velocity获取字符串长度方法:
用length()就可以了,截取子字符串用substring(0,10) 。$str.substring(0,3)
2. volecity遍历map:
#foreach($infos in $lineBusiness.entrySet())
${infos.key} ${infos.value}
#end
详见:http://mingyundezuoan.iteye.com/blog/2205182
3. $velocityCount是循环的索引值
设置新属性:#set($temp=$velocityCount)
4.
标签:
原文地址:http://www.cnblogs.com/Jtianlin/p/4711943.html