标签:三目运算 freemark length type bsp else aml lis string
布尔型必须转为字符串输出
${team.isClub ? string ("true", "false")}
freemarker三目运算:
${ (type == “SPOT”) ?string(‘热点词‘,‘热点搜索‘)}
字符串截取(索引0到索引5)
${team.picNo[0..5]}
if..else 语句
<#if team.picNo?length != 18>
<#else>
</#if>
循环列表
<#list teamList as team>
<tr>
<td>${team.teamNo}</td>
</tr>
</#list>
标签:三目运算 freemark length type bsp else aml lis string
原文地址:http://www.cnblogs.com/ggooo/p/6338073.html