![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thymeleaf
FromNowOnUntilTheEnd
每日记录
展开
-
Thymeleaf将ajax返回值中拼接外部标签和 js中获取session值及 在普通标签中获取session值
一、Thymeleaf普通标签中获取session值<p th:text="${session.test}"></p>① th:text: Thymeleaf的标签都要加th:作前缀② <p></p>: 表示一个段落,可以用来换行二、Thymeleaf在js中获取session值后台代码中 @RequestMapping(value =...原创 2018-03-05 16:09:11 · 6591 阅读 · 2 评论 -
Thymeleaf在js中拼接一段字符串或者一段html代码
在 javascript 代码中使用 Thymeleaf 模板引擎:<script th:inline="javascript"> $("#content").html( "<select name='status'>"+ " <option value=''>[[#{admin.common.choose}]]转载 2018-03-05 16:14:20 · 6906 阅读 · 8 评论