美文网首页
2021-11-17 thymeleaf笔记

2021-11-17 thymeleaf笔记

作者: scoot929 | 来源:发表于2021-11-17 10:59 被阅读0次

    变量引用

    <span th:text="${entry}"></span>
    

    循环

        <li th:each="entry : ${extraValues}">
            <span th:text="${entry.key}"></span> :
            <span th:text="${entry.value}"></span>
        </li>
    

    th:classappend

    <img src="../images/hongbao.png" th:classappend="${entry.hongbao lt 30 ? 'grey' : ''}"/>
    <div th:if="${hongbao}" class="button" id="button" th:classappend="${(before? 'grey_button' : '')}"></div>
    <div th:unless="${status.index}==2" class="item" th:classappend="${(entry.value>0? '' : 'grey')} "
          th:styleappend="'background: url(../images/'+${entry.key}+'.png) no-repeat;'">
    </div>
    

    th:href

    <a th:href="@{'https://remymartin.kehutech.com/transactionmanagement/purchaseorders/'+${orderId}}"></a>
    

    th:text

    <span th:text="${orderId}"></span>
    

    th:if

    <h3 th:if="${action=='reject'}">
    

    计算

    <div class="g-progress g-progress1" th:style="'width: ' + ${totalPoints/budget}* 100*0.8 + '%;'"></div>
    

    相关文章

      网友评论

          本文标题:2021-11-17 thymeleaf笔记

          本文链接:https://www.haomeiwen.com/subject/gklltrtx.html