velocity 字符串解析
来源:互联网 发布:淘宝的拍卖玉器可信吗 编辑:程序博客网 时间:2024/05/26 14:09
#if($!{olymList} && $!{olymList.size()}>0)
#set($num = 0)
#foreach($!{record} in $!{olymList})
#set($num = $num+1)
#set($gold=$record.medal_num.substring(0,$record.medal_num.indexOf('#')))
#set($strr=$record.medal_num)
#set($silver=$strr.substring($gold.length(),5))
#set($strr=$strr.replace("$gold$silver#",""))
#set($silver=$silver.substring(1,$silver.length()))
#set($copper=$strr.substring(0,$strr.indexOf('#')))
#set($all=$record.medal_num.replace("$gold#$silver#$copper#",""))
<tr height="32">
<td><span>$!{num}</span></td>
<td>$!{record.country}</td>
<td>$!{gold}</td>
<td>$!{silver}</td>
<td>$!{copper}</td>
<td>$!{all}</td>
</tr>
#end
#end
#set($num = 0)
#foreach($!{record} in $!{olymList})
#set($num = $num+1)
#set($gold=$record.medal_num.substring(0,$record.medal_num.indexOf('#')))
#set($strr=$record.medal_num)
#set($silver=$strr.substring($gold.length(),5))
#set($strr=$strr.replace("$gold$silver#",""))
#set($silver=$silver.substring(1,$silver.length()))
#set($copper=$strr.substring(0,$strr.indexOf('#')))
#set($all=$record.medal_num.replace("$gold#$silver#$copper#",""))
<tr height="32">
<td><span>$!{num}</span></td>
<td>$!{record.country}</td>
<td>$!{gold}</td>
<td>$!{silver}</td>
<td>$!{copper}</td>
<td>$!{all}</td>
</tr>
#end
#end
- velocity 字符串解析
- velocity解析vm配置文件
- velocity json数组解析
- velocity解析jsonArray数组
- Velocity中格式字符串
- Velocity 字符串处理
- Velocity截取字符串显示
- Velocity字符串模板替换
- Velocity 字符串拼接
- Velocity操作字符串
- velocity字符串拼接
- velocity把字符串当做模板
- velocity tools1.x(4)中的handleRequest解析
- SSI与Velocity解析时的区别
- Velocity工作原理解析和优化
- Velocity工作原理解析和优化
- Velocity语法强化7之字符串
- Velocity 读取字符串模板生成代码
- Linux 的僵尸(zombie)进程
- 【JAVA核心技术】新I/O
- linux启动流程
- 闭关第7天练级关键词
- performSelector 和 NSTimer没有执行的解决方法
- velocity 字符串解析
- PSTN与VoIP
- 无Device的驱动如何通信(有机会实践一把)
- 我的日期/时间类
- Android架构纵横谈之二——基于性能的考虑(1)
- vim——编辑利器
- C里的共同体和结构体的区别
- 36 选 7 彩票机选程序
- sys模块