如何检查是否使用jstl设置了属性(不是null,也不是空字符串)? 9 月 Questions & Answers 68178 例如 <c:if test="${post}"> <h3>${post.title}</h3> </c:if>
# 1 楼答案
使用空关键字
# 2 楼答案
你也可以用“!”而是“不是”: