freemarker ftl 文件中写radio单选框select 下拉框并且带if条件判断

  
<#list themes as t>
                  <#switch t.id>
                <#case "default">
    checked value="${t.id}">蓝色主题
                   <#break>
               <#case "gdocs">
    checked value="${t.id}">淡蓝主题
                   <#break>
   <#case "greenTheme">
    checked value="${t.id}">绿色主题
                   <#break>
   <#case "hcBlack">                       
    checked value="${t.id}">黑色主题
                   <#break>
   <#case "yellowTheme">                       
    checked value="${t.id}">黄色主题
                   <#break>
                        <#default>
    checked value="${t.id}">${t.title?html}${t.id?html}1
   
                 
 
下拉框
 

你可能感兴趣的:(web前端)