原文:jstl if else 判斷

lt c:choose gt lt c:when test userInfo.cardPhoto null amp amp userInfo.cardPhoto gt lt img src lt ProjectConfig.getFileServers gt userInfo.cardPhoto onerror javascript:this.src imgs ic pic l.png styl ...

2018-11-24 13:28 0 1459 推薦指數:

查看詳情

jstl 判斷 null

<c:if test="${not empty object }"> ${object}不為空 </c:if>    ...

Wed Feb 08 23:04:00 CST 2017 0 1918
JSTL 沒有 else的解決方法

后台封裝了一個對象 放在model里: notice是個對象 然后前台如果沒有公告的話,希望顯示暫無公告: 前台<c:if>沒有else的邏輯,怎么解決? 解決方案: 如此,有公告的時候,就顯示,沒有就是暫無公告: ...

Fri Apr 07 01:41:00 CST 2017 0 2449
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM