1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > beetl模板引擎中for循环语句(包含select设置默认值)和if判断语句

beetl模板引擎中for循环语句(包含select设置默认值)和if判断语句

时间:2022-11-11 14:26:56

相关推荐

beetl模板引擎中for循环语句(包含select设置默认值)和if判断语句

<#select id="salesOfficesId" name="售楼处" >

@for(offices in officesList){

<option value="${offices.id}" ${offices.id == building.salesOfficesId?'selected': ''}>${offices.name}</option>

@}

</#select>

@if(!isEmpty(buildingDetail)){

<#input id="averagePrice" name="楼盘均价" value="${buildingDetail.averagePrice}" underline="true"/>

<#input id="floorPrice" name="最低价格" value="${buildingDetail.floorPrice}" underline="true"/>

<#input id="introduction" name="项目简介" value="${buildingDetail.introduction}" underline="true"/>

@}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。