1. 程式人生 > >【thymeleaf-標簽】th:if

【thymeleaf-標簽】th:if

rsize span margin 大於 -a 簡介 標簽 car obi

簡介:

判斷表達式:

  • 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>

【thymeleaf-標簽】th:if