从后台获取到数据以后,需要根据不同的情况显示不同的页面信息,这时候需要用的c:if来进行判断,记录一下判断集合的方式
集合不为空的情况
<c:if test="${not empty userRefundInfolist}">
<c:forEach items="${userRefundInfolist}" var="refund" varStatus="vs">
//循环写入知己的逻辑代码
</c:forEach>
</c:if>
集合为空的情况
<c:if test="${empty userRefundInfolist}">
<img src="assets/img/weixin/无消息.png" alt="" class="img1">
</c:if>