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

相关文章:

  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-07-04
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-12-27
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
相关资源
相似解决方案