springboot thymeleaf常用标签
xmlns:th="http://www.w3.org/1999/xhtml"
<tr th:each="user,i : ${list}" th:class="${i.odd}?'odd'">
<td th:text="${user.username}"></td>
<td th:if="${user.sex}==1">男</td>
<td th:if="${user.sex}==0">女</td>
<td th:text="${user.phone}"></td>
<td th:text="${#dates.format(user.borthday, 'yyyy-MM-dd')}"></td>
<td>
<input type="button" value="删除" th:onclick="'getName(\''+${user.id}+'\')'">
</td>
</tr>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<!--数字循环-->
<!-- <tr class="pagination" th:each="i : ${#numbers.sequence(1, rows)}">
<td>[[${i}]]</td>
</tr>-->
<!--嵌套循环-->
<tr class="pagination" th:each="i : ${#numbers.sequence(1, rows)}">
<td th:each="deptDict,userStat : ${deptDicts}"
th:if="${userStat.index lt i*4 and userStat.index ge (i-1)*4}">
<input type="checkbox" th:value="${deptDict.deptCode}" name="deptCode">
<span th:text="${deptDict.deptName}"></span>
</td>
</tr>
最新文章
- Cach&#233;数据库学习笔记(5)
- hibernate3
- Linux C _exit函数与exit函数的联系与区别
- ZOJ Monthly, July 2015
- ***redis linux 命令使用总结
- 证明:寝室分配问题是NPC问题
- Convert boolean values to strings &#39;Yes&#39; or &#39;No&#39;.
- python-MySQLdb-练习
- [转载]python os.path模块
- linux 输入输出重定向
- JavaScript 之 HelloWorld编写
- Volatile和Synchronized对可见性和原子性的支持
- 自学Zabbix3.9.3-模板Templates-嵌套Nesting
- R贡献文件中文
- [Alpha阶段]发布说明
- PHP实现url参数组合字符串与数组相互转换
- centos服务器监控 服务器虚拟机里面的客户端zabbix-agent安装
- 深入浅出 Java 中的包装类
- 使用Deeplearning4j进行GPU训练时,出错的解决方法
- 3994: [SDOI2015]约数个数和