FreeMarker是一款模板引擎,可用于.ftl文件
if 的使用
<#list list as list>
<tr>
<td >
<label class="i-checks">
<input type="checkbox" name="subBox" value="${list.id}">
<i></i>
</label>
</td>
<td >${list.programname}</td>
<#if list.type==0><td>全部频道</td>
<#elseif list.type==1><td>抚州一套</td>
<#elseif list.type==2><td>抚州二套</td>
</#if>
<td >${list.starttime} - ${list.endtime}</td>
<td >${list.name} : ${list.date}</td>
</tr>
</#list>
最后
以上就是粗犷溪流最近收集整理的关于FreeMarker模板引擎if 的使用的全部内容,更多相关FreeMarker模板引擎if内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复