![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thymeleaf
请问你是水呢
转型开发的搬砖工
展开
-
前端页面获取后台model传递的值
在jsp页面可以用var ss='${url}';在thymeleaf模板引擎中可以用var items = '[[${items}]]';转载 2020-09-13 20:27:42 · 6511 阅读 · 0 评论 -
thymeleaf中 th的几种拼接方法
1、拼接href \srcsrc示例:<img th:src="@{/img/research/{filename}(filename=${research.filename})}">href示例:<a th:href="@{'https://'+${url.url}}" th:text="${url.urlName}"></a>2、拼接onclick方式1、<button class="btn" th:onclick="'audit转载 2020-09-13 20:00:50 · 5148 阅读 · 0 评论