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.