![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thymeleaf
月光降临人间
这个作者很懒,什么都没留下…
展开
-
springboot接收对象ajax数据(json格式)
$.ajax({ type: 'POST', // contentType : "application/json", data: { "mobile": mobile, "id": orderId }, url...原创 2019-10-30 14:56:17 · 4118 阅读 · 0 评论 -
Thymeleaf获取项目根路径三种方式
<script th:inline="javascript" type="text/javascript"> var ctxPath = [[@{/}]]; var ctxPath = /*[[@{/}]]*/''; var ctxPath=[[${#httpServletRequest.getContextPath()}]];</script>...原创 2019-03-06 14:03:29 · 20819 阅读 · 2 评论 -
Thymeleaf 在js和标签按钮中访问后台参数model
<!-- js中访问 --><script th:inline="javascript"> var single = [[${singlePerson}]]; console.log(single.name+"/"+single.age)</script><!-- 标签按钮中访问 --><button class.原创 2019-03-06 14:34:38 · 1253 阅读 · 0 评论