收藏 SpringBoot :thymeleaf 使用详解
转载大神们笔记
--比较详细的
http://www.importnew.com/25826.html
http://www.niugebbs.com/xdmrhf/1046839.html
https://blog.csdn.net/u014042066/article/details/75614906
https://www.jianshu.com/p/a7056b023df0
--集中常用的
https://www.cnblogs.com/yws710/p/7223379.html
https://blog.csdn.net/howieli_1995/article/details/60479003
各种坑
https://my.oschina.net/u/2338224/blog/1611910
事件中的参数传递方式
th:onclick="'javascript:openBox(\''+${curCabNo}+'\',\''+${box.no}+'\')'"
html中引的js文件
<script src="../static/js/myJs.js" th:src="@{/js/myJs.js}"></script>
iframe的使用
<iframe th:replace = "noticeBook/ej/paging::html" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
- foreach用法:
<tr th:each="NoticeBook,start:${listNoticeBook}">
<td><input type="checkbox" th:text="${start.index}+1"></td>
<td th:text="${NoticeBook.docid}">默认</td>
<td th:text="${NoticeBook.docname}">默认</td>
<td th:text="${NoticeBook.zb_date}">默认</td>
<td th:text="${NoticeBook.zbcs}">默认</td>
<td th:if="${NoticeBook.no_start=='1'}">已下载</td>
<td th:unless="${NoticeBook.no_start=='1'}">未下载</td>
<td class="last">
<a href="javascript:void(0);" class="bidding" title="中标"></a>
<a href="javascript:void(0);" class="cj" title="成交"></a>
</td>
</tr>
2.<a>标签直接从后台接受值
<a th:href="@{${collect.CQGG_SWPT_LINK}}" value="预览">预览</a>
3.thymeleaf th:replace th:include th:insert 的区别
https://blog.csdn.net/austral/article/details/73802396
4.从后台获得值 js中接收
<script type="text/javascript" th:inline="javascript">
var zb_num = [[${zbcs}]];
收藏 SpringBoot :thymeleaf 使用详解的更多相关文章
- springboot: thymeleaf 使用详解
springboot:thymeleaf,这篇文章将更加全面详细的介绍thymeleaf的使用.thymeleaf 是新一代的模板引擎,在spring4.0中推荐使用thymeleaf来做前端模版引擎 ...
- Springboot mini - Solon详解(二)- Solon的核心
Springboot min -Solon 详解系列文章: Springboot mini - Solon详解(一)- 快速入门 Springboot mini - Solon详解(二)- Solon ...
- SpringBoot之DispatcherServlet详解及源码解析
在使用SpringBoot之后,我们表面上已经无法直接看到DispatcherServlet的使用了.本篇文章,带大家从最初DispatcherServlet的使用开始到SpringBoot源码中Di ...
- SpringBoot Profile使用详解及配置源码解析
在实践的过程中我们经常会遇到不同的环境需要不同配置文件的情况,如果每换一个环境重新修改配置文件或重新打包一次会比较麻烦,Spring Boot为此提供了Profile配置来解决此问题. Profile ...
- Spring全家桶——SpringBoot之AOP详解
Spring全家桶--SpringBoot之AOP详解 面向方面编程(AOP)通过提供另一种思考程序结构的方式来补充面向对象编程(OOP). OOP中模块化的关键单元是类,而在AOP中,模块化单元是方 ...
- Springboot mini - Solon详解(四)- Solon的事务传播机制
Springboot min -Solon 详解系列文章: Springboot mini - Solon详解(一)- 快速入门 Springboot mini - Solon详解(二)- Solon ...
- Springboot mini - Solon详解(三)- Solon的web开发
Springboot min -Solon 详解系列文章: Springboot mini - Solon详解(一)- 快速入门 Springboot mini - Solon详解(二)- Solon ...
- Springboot mini - Solon详解(五)- Solon扩展机制之Solon Plugin
Springboot min -Solon 详解系列文章: Springboot mini - Solon详解(一)- 快速入门 Springboot mini - Solon详解(二)- Solon ...
- Springboot mini - Solon详解(六)- Solon的校验框架使用、定制与扩展
Springboot min -Solon 详解系列文章: Springboot mini - Solon详解(一)- 快速入门 Springboot mini - Solon详解(二)- Solon ...
- Springboot mini - Solon详解(七)- Solon Ioc 的注解对比Spring及JSR330
Springboot min -Solon 详解系列文章: Springboot mini - Solon详解(一)- 快速入门 Springboot mini - Solon详解(二)- Solon ...
随机推荐
- (转)RTMP协议从入门到放弃
转载自: http://blog.csdn.net/shangmingyang/article/details/50837852 RTMP协议是Real Time Message Protocol( ...
- 在线接口管理工具-eoapi
为了方便和前端沟通,临时在局域网搭建了一个接口管理工具,查了一些资料都说eoapi不错,那就试了一下: 1.安装 要在服务器或者自己的电脑,准备web环境,Linux可以是Apache/nginx , ...
- UNR #1 火车管理
很简单 用一个线段树维护 1.答案 2.当前栈顶是什么时候push进来的 然后用一棵以时间为版本的可持久化线段树维护每个操作之后第一个覆盖到他的操作是哪个 就可以了 询问直接在线段树上询问,修改在两棵 ...
- ACM学习历程—NPU1086 随机数 2015年陕西省程序设计竞赛网络预赛(正式赛)C题 (计数排序 || set容器)
Description 开学了,ACM队的边老板想在学校中请一些妹子一起做一项问卷调查,调查妹子们对ACM的了解情况,为了实验的客观性,他先用计算机生成了N个1到1000之间的随机整数(N≤100), ...
- bzoj4555: 求和sum 快速傅立叶变换
题目大意 给定\(S(n,m)\)表示第二类斯特林数,定义函数\(f(n)\) \[f(n) = \sum_{i=0}^n\sum_{j=0}^iS(i,j)*2^j*(j!)\] 给定正整数\(n, ...
- Python3解leetcode Maximum Subarray
问题描述: Given an integer array nums, find the contiguous subarray (containing at least one number) whi ...
- maven+eclpse+jmeter+jenkis
1.maven配置:http://www.cnblogs.com/AlanLee/p/6133189.html 2.在eclipse中创建maven项目:https://jingyan.baidu.c ...
- window下redis如何查看版本号
1.启动服务端:redis-server 2.启动客户端:redis-cli 3.客户端输入:info 即可.
- POJ-3176
Cow Bowling Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 19864 Accepted: 13172 Des ...
- Biopython常用功能模块
Biopython项目是旨在减少计算生物学中代码重复的开源项目之一,由国际开发人员协会创建. 它包含表示生物序列和序列注释的类,并且能够读取和写入各种文件格式(FASTA,FASTQ,GenBank和 ...