<c:if test="${empty str}"> str为空</c:if> <c:if test="${not empty str}"> str不为空</c:if> 转载于:https://www.cnblogs.com/zhujiabin/p/5157863.html