freemarker 判断list记录大于0 用<#if (list?size > 0)></#if>即可。下面是个显示附件的实例
<#if (post.attachments?size > 0)>
<table width="100%" height="20px" cellpadding="0" cellspacing="0" class="post_bodyTable">
<tbody>
<tr>
类别:Freemarker 查看评论
文章来源:http://hi.baidu.com/zdz8207/blog/item/7e88e8c417f0d4ae8326ac2b.html