【thymeleaf-标签】th:if
简介:
判断表达式:
- gt:great than(大于)>
- ge:great equal(大于等于)>=
- eq:equal(等于)==
- lt:less than(小于)<
- le:less equal(小于等于)<=
- ne:not equal(不等于)!=
eg :
1、 th:if="${xx} lt 'x'" <=> xx < x
2、
<div th:if=" ${userCarSize} lt '3'">
<div class="addList">
<p>
<a id="gotobindView">
<span class="icon"></span>添加绑定
</a>
</p>
<p>最多绑定三辆车</p>
</div>
</div>