Home EL表达式判断字符串相等(eq)和不相等(ne)
Post
Cancel

EL表达式判断字符串相等(eq)和不相等(ne)

1
2
3
4
5
6
7
8
<td class="t1">
  <input type="hidden" class="name" value="${name}">
  <a class="c-link fb delete-btn">删除</a>
  <a class="c-link fb ml10">记录</a>
  <!-- 相等(eq)、不相等(ne) -->
  <c:if test="${staus eq '1'}"><a class="c-link fb ml10">开启流程</a></c:if>
  <c:if test="${staus ne '1'}"><a class="c-link fb ml10">处理流程</a></c:if>
</td>
This post is licensed under CC BY 4.0 by the author.