<c:if> 标签和c 标签中的if else

<c:if>标签判断表达式的值,如果表达式的值为 true 则执行其主体内容。
<c:if test="" var="" scope="">
...
</c:if>

<c:choose>
<c:choose> 和 <c:when> 、 <c:otherwise> 一起实现互斥条件执行,类似于 java 中的 if else.
<c:choose> 一般作为 <c:when> 、 <c:otherwise> 的父标签。
<c:choose>
<c:when test="${row.v_money<10000}">

本月工资大于1w


</c:when>
<c:otherwise>

本月工资小于1w


</c:otherwise>
</c:choose>

posted @ 2021-05-31 10:08  悻南  阅读(1378)  评论(0)    收藏  举报