freemarker关于select回显

<select name="solrIndex" editable="false" panelHeight="auto" class="easyui-combobox" >
<#list allSolrIndexs.keySet() as key>
    <#if "${product.solrIndex==key}" >
        <option value="${key}" selected="selected">${allSolrIndexs.get(key)}</option>
        <#else >
            <option value="${key}">${allSolrIndexs.get(key)}</option>
    </#if>
</#list>
</select>
发布了32 篇原创文章 · 获赞 16 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/qq_32497361/article/details/76408647