<tr th:each=\"book : ${books}\"> <td th:text=\"${book.author}\"></td>
<tr th:each="book : ${books}"> <td th:text="${book.author}"></td> <td th:text="${book.title}"></td> <td th:text="${book.url}"></td> <script th:inline="javascript">//一定要加上这句 function localRefresh() { // 装载局部刷新返回的页面 $('#table_refresh2').load("/local/"+[[${book.ID}]]);//这里直接可以使用thymeleaf中的变量,通过内联样式 } </script> </tr>
赞
(4)
打赏
微信扫一扫
支付宝扫一扫


原生js或者jquery获取父级元素/同级元素/下级元素
上一篇
2020年10月10日 13:14
Thymeleaf——th:each遍历Map List
下一篇
2020年10月10日 13:19
这里是广告位
相关推荐
-
Sring Data JPA使用Predicate进行模糊查询、按时间段查询
10 : demoDTO.getSize();PageRequest pageRequest = new PageRequest;Specification<W
-
Thymeleaf——th:each遍历Map List
@RequestMappingpublic Object a3{Map<String,User> map1=new HashedMap();User user1
-
js与thymeleaf结合,js获取thymeleaf变量
<tr th:each=\"book : ${books}\"> <td th:text=\"${book.author}\"></td>