Thymeleaf常用语法:条件判断 if、switch case

<div class="ibox-diy" th:if="${activity.activityType} eq 3">
    <div class="ibox-content-diy">
        <small>已付尾款订单数量</small>
        <h1>[[${dailyData.tailOrderNum}]]</h1>
    </div>
</div>
<div class="ibox-diy" th:if="${activity.activityType} ne 3">
    <div class="ibox-content-diy">
        <small>订单数量</small>
        <h1>[[${dailyData.orderNum}]]</h1>
    </div>
</div>

https://www.cnblogs.com/gdjlc/p/11695517.html

thymeleaf th:value 多个值拼接 使用+号 或者|符号 (不适用于th:field)

https://blog.csdn.net/torpidcat/article/details/89560173

posted on 2022-01-17 14:42  大山008  阅读(381)  评论(0编辑  收藏  举报