Home EL表达式标签判断参数是否为空
Post
Cancel

EL表达式标签判断参数是否为空

1
2
<c:if test="${empty str}"> str为空 </c:if>
<c:if test="${not empty str}"> str不为空 </c:if>
This post is licensed under CC BY 4.0 by the author.

DOS命令集

EL表达式判断字符串相等(eq)和不相等(ne)