<s:if test="null==user||user.isEmpty()"> 集合为空 </s:if><s:else> 集合不为空 </s:else>
or
<s:if test="null!=user&&!user.isEmpty()"> 集合不为看空 </s:if>
本文探讨了如何使用条件语句判断集合的状态,包括集合为空和不为空两种情况。
<s:if test="null==user||user.isEmpty()"> 集合为空 </s:if><s:else> 集合不为空 </s:else>
or
<s:if test="null!=user&&!user.isEmpty()"> 集合不为看空 </s:if>
4602
1164
272
6921
3210

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