我是靠谱客的博主 坦率芝麻,这篇文章主要介绍freemarker循环遍历且忽略某个属性,现在分享给大家,希望可以做个参考。

freemarker循环遍历且忽略某个属性

当是id属性时, 另外处理,  作为隐藏值,不显示.

 

当是时间类型的属性时, 显示日期控件

 

 <#list beans as bean>
            <#if bean.col=="id">
                <input type="hidden" name="id"/>
            <#else>
                 <div style="margin-bottom:10px">
                   <#if bean.type!="Timestamp">
                    <input name="${bean.col}" class="easyui-textbox" required="true" label="${bean.label}" style="width:100%">
                   <#else>
                    <input name="${bean.col}" class="easyui-datebox" label="${bean.label}" labelPosition="left" data-options="formatter:myformatter,parser:myparser" style="width:100%;">
                   </#if>
                 
                 </div> 
             </#if>
            </#list>

最后

以上就是坦率芝麻最近收集整理的关于freemarker循环遍历且忽略某个属性的全部内容,更多相关freemarker循环遍历且忽略某个属性内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部