![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thymeleaf
一叶一追寻ᝰ
一花一世界,一叶一追寻,一曲一场叹,一生为一人。
展开
-
thymeleaf 界面局部更新数据
1、界面div引入th:fragment="fragmentSegmentBad"2、后台return "/add :: fragmentSegmentBad"示例:1、界面<div id="div4" th:fragment="fragmentSegmentBad"> <h4 class="form-header h4">不良数量</h4> <div class="for.原创 2021-07-30 10:04:29 · 547 阅读 · 0 评论 -
select2 选择给多个input赋值
一、CommonCustomer.java@Override public String toString() { JSONObject object=new JSONObject(); object.put("serialNo",serialNo); object.put("customerId",customerId); object.put("customerName",customerName); object原创 2021-03-30 10:18:36 · 318 阅读 · 0 评论 -
timeline在thymeleaf中生成时间轴,含有thymeleaf中使用判断。
本篇文章中需要具备的基础知识,thymeleaf中判断、循环的使用。一、代码<div id="vertical-timeline" class="vertical-container light-timeline" th:each="msg : ${list}"> <div th:if="${msg.operationTable} eq 'files'" class="vertical-timeline-block">原创 2021-03-29 08:24:41 · 430 阅读 · 0 评论 -
thymeleaf 直接调用后台Service动态传参数和不传参数
一、不传参调用后台service接口1、后台需要在service接口定义一个名称2、thymeleaf界面直接调用二、动态传参数调用后台service接口thymeleaf界面直接调用${}里面则是动态的数据,需要的注意的是带‘’是字符串,不带则是数字...原创 2021-01-22 15:37:06 · 1602 阅读 · 0 评论