常用格式:
<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()}:表示的是数据字典相关内容
本文详细解析了表单中选择控件的使用方法,包括如何设置实体类字段、遍历表格、显示内容及value属性,特别介绍了数据字典的调用方式。

2931

被折叠的 条评论
为什么被折叠?



