有关form:select的内容

常用格式:

<form:select path="dangerRelationTypeCode" class="input-medium required">
   <form:options items="${fns:getDictList('hiddenTroubleRelationship')}" itemLabel="label"
              itemValue="value" htmlEscape="false"/>
</form:select>

path:表示实体类中的某个字段

items:表示将要遍历的表

itemLabel:表示显示的内容

itemValue:表示option中value的属性

${fns:getDictList()}:表示的是数据字典相关内容

猜你喜欢

转载自blog.csdn.net/ccclych1/article/details/88395650
今日推荐