theamleaf
我有闪现
想着我的好或者想着我就好。
展开
-
SpringBoot+Theamleaf实现分页功能
效果前端使用theamleaf超链接传参给后台 <div class="pagination-wrap" style="position: relative;left: 363px;width: 259px"> <ul class="pagination"> <li><a th:href="@{/pages/back/goods/goodsList(pageNumber = ${pageNo-7})}"&原创 2021-12-29 09:12:30 · 492 阅读 · 0 评论 -
theamleaf 引用css
<!-- bootstrap.min.css --> <link rel="stylesheet" th:href="@{/css/index/bootstrap.min.css}"> <!-- font-awesome.min.css --> <link rel="stylesheet" th:href="@{/css/index/font-awesome.min.css}"> <!-- owl.carousel.css --> &l.原创 2021-12-05 18:16:12 · 1537 阅读 · 0 评论 -
js使用theamleaf的值
<script th:inline="javascript" type="text/javascript" > console.log([[${user.userId}]]); </script>原创 2021-11-03 16:03:48 · 307 阅读 · 0 评论 -
jquery 对select选择器动态赋值
原创 2021-10-22 12:18:09 · 733 阅读 · 0 评论 -
theamleaf+js获取后台model.addAttribute传递过来的值
model.addAttribute("types",typeService.seleTypesByParentId(-1));//查询一级标题前端<html lang="en" xmlns:th="http://www.thymeleaf.org"> xmlns:color="http://www.w3.org/1999/xhtml"><script th:inline="javascript" type="text/javascript" rel="script">.原创 2021-10-22 11:24:59 · 1156 阅读 · 0 评论 -
springboot @Requestmapping 长路径下html获取不到静态资源
thymeleaf模板 通过正常href路径获取不到静态资源需要通过th:href获取<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>原创 2021-10-07 15:02:04 · 285 阅读 · 0 评论 -
theamleaf th:style矩形百分比填充
<th:style="'width:'+${t.html}+'%'"> HTML</div>原创 2021-03-14 23:19:56 · 203 阅读 · 0 评论 -
如何theamleaf each循环中的id
特别注意:th:onclick 不是 onclick 好几次在这个上出问题了原创 2021-03-12 10:52:42 · 213 阅读 · 0 评论