【thymeleaf】th:with
生活随笔
收集整理的這篇文章主要介紹了
【thymeleaf】th:with
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
略
th:with
th:with用于定義局部變量。其作用范圍在其所在標簽或者子標簽中有效。
th:with定義的局部變量在其所在標簽中使用
Hello , <span th:width="name='jack'" th:text="${name}" class="na"></span> :th:with定義的局部變量在子標簽中使用
<ul th:with="liSize=5"><li th:each="index : ${#numbers.sequence(1, liSize)}" >[(${index})]. some thing</li> </ul> 與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的【thymeleaf】th:with的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 华为MatePad首发评测:不能当学习机
- 下一篇: 小P启用SSL异常