1,判断是否为空
<div class="formformat"><label>是否推荐:</label>
<select class="formselect" id="isrecommend" >
<option value="Y" <#if articleVo.isRecommend!""=="Y"|| (articleVo.isRecommend)??>selected</#if> >是
</option>
<option value="N"
<#if articleVo.isRecommend!""=="N">selected</#if>>否</option>
</select>
</div>
网友评论