标签:
<struts:if test=‘%{testBean.test}‘>是</struts:if>
<struts:else>否</struts:else>
其他写法:
等于
<s:if test="user.username eq \"a\"">
<s:if test="user.username==\"a\"">
<s:if test=‘user.username eq "a"‘>
小于
<s:if test="user.age lt 0">小于0</s:if>
或
<s:if test="null==list2 or 0==list2.size">为空</s:if>
<struts:iterator value="testlst">
<div>
<struts:property value="test" />
</div>
</struts:iterator>
<select id="xx">
<struts:iterator value="types">
<option value="<struts:property value="key"/>"><struts:property value="value"/></option>
</struts:iterator>
</select>
$("#selectid option:selected").val()
$("#selectid option:selected").text()
$("#selectid").val("pxx")
$("#selectid").find("option[text=‘xx‘]").attr("selected",true)
$("#selectid").val()
$("#selectid").find("option:selected").text();
标签:
原文地址:http://www.cnblogs.com/linghai/p/4833204.html