JSP 基础之 JSTL <c:choose>用法 if else

 

1
2
3
4
5
6
7
8
9
10
11
<c:choose> 
  <c:when test="${condition1}"
         condition1为true 
  </c:when> 
  <c:when test="${ condition2}"
      condition2为true 
  </c:when> 
  <c:otherwise> 
     condition1和condition2都为false 
  </c:otherwise> 
</c:choose>

  

posted @ 2017-02-21 15:29  K____K  阅读(1728)  评论(0)    收藏  举报
点击右上角即可分享
微信分享提示