freemarker中map集合的遍历:

<table width="300" border =1>
        <thead>
            <tr>
                <th width="100">comefrom</th>
                <th width="120">count</th>
            </tr>
        </thead>
        <tbody>
            <#if clientSourceData?exists>
                <#list clientSourceData?keys as key>
                   <tr>
                           <td>${key}</td>
                           <td>${clientSourceData.get(key)}</td>
                   </tr>
                </#list>
            </#if>
            <tr>
                   <td>合计:</td>
                   <td>${totalNum}</td>
           </tr>
        </tbody>
    </table>
阅读更多
个人分类: freemarker
上一篇回车键提交兼容火狐
下一篇freemarker map判断空值
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭