隨手筆記(二十九)——— thymeleaf th:if 判斷表達式

thymeleaf 判斷表達式注意:

gt:great than(大於)>
ge:great equal(大於等於)>=
eq:equal(等於)==
lt:less than(小於)<
le:less equal(小於等於)<=
ne:not equal(不等於)!=

<div th:if=" ${userCarSize} lt '3'">
  <div class="addList">
    <p>
       <a id="gotobindView">
            <span class="icon"></span>添加綁定
        </a>
    </p>
   <p>最多綁定三輛車</p>
    </div>
</div>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章