您的位置:首页 > 其它

Thymeleaf---if 表达式

2018-03-20 10:15 113 查看
gt:great than(大于)>

ge:great equal(大于等于)>=

eq:equal(等于)==

lt:less than(小于)<

le:less equal(小于等于)<=

ne:not equal(不等于)!=

<div th:if=" ${userCarSize} lt '3'">

</div>

        <th:block th:if="${#lists.isEmpty(positionLists)}">
暂无数据
</th:block>

positionLists为空显示暂无数据

<th:block th:each="data : ${positionLists}">  循环语句对象为空时,不显示内容
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: