摘要:
3.4 属性值的设置 3.4.1 使用th:attr来设置属性的值 <form action="subscribe.html" th:attr="action=@{/subscribe}"> <fieldset> <input type="text" name="email" /> <input t 阅读全文
posted @ 2017-05-23 13:01
雪山上的蒲公英
阅读(34016)
评论(2)
推荐(0)
摘要:
th:*使用原因: for the sake of simplicity and compactness of the code samples(简化代码) the th:*notation is more general and allowed in every Thymeleaf templat 阅读全文
posted @ 2017-05-23 12:11
雪山上的蒲公英
阅读(52823)
评论(0)
推荐(4)
摘要:
2.7 条件表达式 模板名称:condition-express.html <1>a ? b:c (if then:else) <2>a?c (if else) 条件表达式(condition,then和else)的所有三个部分都是表达式,这意味着它们可以是变量(${...},*{...}),消息( 阅读全文
posted @ 2017-05-23 11:09
雪山上的蒲公英
阅读(2209)
评论(0)
推荐(1)
摘要:
2.3 文本操作符 模板名称:text.html 连接符: + 可以是任意字符和表达式等 文本替换符:| 不能表达出条件表达式(官网:只能是变量表达式) e.g. 1.<span th:text="|Welcome to our application, ${user.name}!|"> 2.<sp 阅读全文
posted @ 2017-05-23 11:03
雪山上的蒲公英
阅读(2321)
评论(0)
推荐(0)
摘要:
2.2 文字(literals) 模板名称:text.html 2.2.1 文本(text literals)(放在 单引号 里面,可以是任意字符) <p> Now you are looking at a <span th:text="'working web application'">temp 阅读全文
posted @ 2017-05-23 10:39
雪山上的蒲公英
阅读(2093)
评论(0)
推荐(0)
摘要:
2. 标准表达式(Standard Expression Syntax) 标准表达式包含以下几个方面: 2. 标准表达式(Standard Expression Syntax) 简单表达式: 变量表达式: ${...} 选择变量表达式: *{...} 消息表达式: #{...} 链接网址表达式: @ 阅读全文
posted @ 2017-05-23 10:14
雪山上的蒲公英
阅读(9462)
评论(0)
推荐(2)
摘要:
1. thymeleaf认识 参考官方文档(Project version: 3.0.5.RELEASE) 1.1 介绍 Thymeleaf是面向Web和独立环境的现代服务器端Java模板引擎,能够处理HTML,XML,JavaScript,CSS甚至纯文本。 Thymeleaf的主要目标是提供一个 阅读全文
posted @ 2017-05-23 09:31
雪山上的蒲公英
阅读(9710)
评论(0)
推荐(2)

浙公网安备 33010602011771号