1. 程式人生 > >freemarker 下拉框回顯

freemarker 下拉框回顯

使用的是Boolean值,如果為flase,返回的則是 ' ' 空字串,否則返回 'true' 字串

<select id="hot" class="easyui-combobox" data-options="disabled:true,height:25,width:50,required:true,validateOnCreate:false,editable:false,panelHeight:50">
          <option <#if ((fic.hot) == '')>selected="selected"</#if> value="0">否</option>
          <option <#if ((fic.hot) == 'true')>selected="selected"</#if> value="1">是</option>
</select>