</script>
(当选项的值不是0,1,2....等时,此js不能⽤)
新增页⾯:
<lect name=spudinNo value="">
<option value="1" >⼀开</option>
watch your back<option value="2" >⼆开</option>winzip是什么
<option value="3" >三开</option>
</lect>
修改页⾯:
<lect name="spudinNo" class="input_width" >
<option value="1"
<c:if test="${spudinNo == '1'}">
lected
</c:if>
perplexus>⼀开</option>
<option value="2"
<c:if test="${spudinNo == '2'}">
lected
回音echo长袖衬衫</c:if>
>⼆开</option>
<option value="3"
<c:if test="${spudinNo == '3'}">
lected
</c:if>longly
uasa>三开</option>
</lect>
list页⾯
<c:if test="${proj.spudinNo=='1'}">
⼀开
</c:if>
<c:if test="${proj.spudinNo=='2'}">
⼆开
</c:if>
高中辅导班<c:if test="${proj.spudinNo=='3'}">
三开
</c:if>
在后台hbm中的转化⽅法:(将数据库存的值,转化成页⾯上的显⽰值)
<property name="spudinNoName"
type="java.lang.String">
<formula>
(lect ca when g.SPUDIN_NO='1' then '⼀开' when g.SPUDIN_NO='2' then '⼆开'
when g.SPUDIN_NO='3' then '三开'
end from
DRILL_BOING_MAKEUP_STRING g where
g.STRING_RECORD_ID =
STRING_RECORD_ID)
</formula>
</property>
chasing