我是靠谱客的博主 大方路灯,这篇文章主要介绍Freemarker list标签,list数据判断使用,现在分享给大家,希望可以做个参考。

<#if listSecMDIF?exists && (listSecMDIF?size>0)>
    <ul style="float: left;margin: 0px;padding-left: 25px;">
        <#list listSecMDIF as item>
            <#if (item)?exists>
                <#if (item.marketMaker)?exists && item.marketMaker!=''>
                    <li style="list-style-type:disc;height: 25px;"><a href="${webPath}/institution/institutionInfo?name=${item.marketMaker!''}" style="color: #5B5B5B;">${item.marketMaker}</a></li>
                 </#if>
            </#if>
        </#list>
    </ul>
<#else>
    <ul style="float: left;margin: 0px;padding-left: 0px;">
             <li style="height: 25px;"><a style="color: #5B5B5B;">(无)</a></li>
     </ul>
</#if>

 

 

 

 取得list的长度:${fields?size}。

<#if (fields?size>0) >  
</#if>  

 

转载于:https://www.cnblogs.com/hwaggLee/p/4653591.html

最后

以上就是大方路灯最近收集整理的关于Freemarker list标签,list数据判断使用的全部内容,更多相关Freemarker内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(69)

评论列表共有 0 条评论

立即
投稿
返回
顶部