当前位置:网站首页>Thymeleaf application notes
Thymeleaf application notes
2022-07-24 19:44:00 【Crawling Oriole】
thymeleaf Apply notes
1. Loop integers
Use #numbers.sequence Method , The specific application is as follows :
<select class="form-control">
<option th:each="num, numStat : ${#numbers.sequence(0,29)}" th:text="${numStat.index+1}" th:value="${numStat.index+1}"></option>
</select>
The renderings are as follows :
2. Loop list
Use th:each label , Examples are as follows :
<div class="row" id="list" th:each="obj : ${objects}">
<div class="form-group">
<label class="col-sm-4 control-label" th:text="${@dict.getLabel('XXXX',obj.type,'')}"></label>
<div class="col-sm-8">
<div class="form-control-static " th:text="${obj.val}" ></div>
</div>
</div>
</div>
3. th:onclick Usage mode
thymeleaf:2.2.13 The version is written as follows :
<h2 th:each="tdxx,tdxxStat : ${lists}">
<span th:text="${tdxx.typeName}" th:id="'filetype'+${tdxxStat.index}" th:onclick="viewPic([[${tdxx.id}]],[[${tdxx.type}]]);"></span>
</h2>
4. th:if Use
th:if="${not #strings.isEmpty(name)}"
边栏推荐
- Machine learning_ Softmax function (multi classification problem)
- 聊下自己转型测试开发的历程
- In the spring of domestic databases
- Zooinspector Download
- Siyuan notes V2.1.2 synchronization problem
- [understanding of opportunity-48]: Guiguzi - Chapter 7 - collect information in advance, make predictions and implementation plans in advance
- Summary of articles in 2020
- 870. Approximate number
- Day 10 (inheritance, rewriting and use of super)
- strlen函数剖析和模拟实现
猜你喜欢

Detailed explanation of ELF format (I)
![Detailed explanation of DHCP distribution address of routing / layer 3 switch [Huawei ENSP]](/img/77/28e8f826c7ee93fedada405c70b82b.png)
Detailed explanation of DHCP distribution address of routing / layer 3 switch [Huawei ENSP]

How to use the interface control telerik UI for WinForms development step progress bar?

原反补及大小端

Day 10 (inheritance, rewriting and use of super)

day 3

On July 31, 2022, the dama-cdga/cdgp data governance certification class was opened!

Database index: index is not a panacea

PostgreSQL Elementary / intermediate / advanced certification examination (7.16) passed the candidates' publicity

strlen函数剖析和模拟实现
随机推荐
Taokeeper environment setup
Virtual machine win7 system installation vmtool
MySQL index principle and query optimization "suggestions collection"
Getting started with COM programming 1- creating projects and writing interfaces
Implement a proxy pool from 0
Channel state information (CSI) conjugate multiplication denoising method
day 2
How to encrypt your own program with dongle
870. Approximate number
Cyberpanel free open source panel - high speed lscache free SSL Certificate - self built DNS and enterprise post office
Oneinstack installation and configuration PHP 8.1 and MySQL 8.0-oneinstack site building novice tutorial
Sword finger offer 45. arrange the array into the smallest number
Sword finger offer 46. translate numbers into strings
Pure C implementation -------- Nicolas theorem
PostgreSQL weekly news - July 13, 2022
Installation and use of lsky Pro lancong drawing bed: a drawing bed program for online uploading and managing pictures
Introduction to WDK development 1- basic environment construction and the first driver (VS2010)
ATL container - catlmap, crbmap
Install SSL Certificate in Litespeed web server
《自尊的6大支柱》自尊来源于自身的感受