![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thymeleaf
thymeleaf模板引擎相关内容
geshengbin
这个作者很懒,什么都没留下…
展开
-
第二部分、其他(Thymeleaf官方文档翻译)
原文:文档5-13节2. 设置属性值2.1 给任意属性赋值使用th:attr可以给任意标签进行属性赋值,举例如下:<form action="subscribe.html" th:attr="action=@{/subscribe}"> <fieldset> <input type="text" name="email" /> <input type="submit" value="Subscribe!" th:attr="value=#翻译 2020-07-02 15:36:39 · 798 阅读 · 0 评论 -
第一部分、标准模板语法(Thymeleaf官方文档翻译)
原文 4 Standard Expression Syntax1.标准模板语法下面使用xmlns的目的是防止IDE软件提示缺少th:*的命名空间,可以不用xmlns<html xmlns:th="http://www.thymeleaf.org">在HTML5文档里,下面的两种语法完全等效,即th:*与data-th-*等效。唯一的不同是data-th-*的语法只能在HTML5文档中使用<p data-th-text="#{home.welcome}">Welco翻译 2020-07-02 15:31:41 · 293 阅读 · 0 评论