Thymeleaf设置属性值
生活随笔
收集整理的這篇文章主要介紹了
Thymeleaf设置属性值
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
th:attr
設(shè)置屬性值
參考文檔
設(shè)置單個(gè)屬性值
<form action="subscribe.html" th:attr="action=@{/subscribe}"><fieldset><input type="text" name="email" /><input type="submit" value="Subscribe!" th:attr="value=#{subscribe.submit}"/></fieldset> </form>設(shè)置多個(gè)屬性值
中間使用逗號(hào)分隔
<img src="../../images/gtvglogo.png" th:attr="src=@{/images/gtvglogo.png},title=#{logo},alt=#{logo}" />總結(jié)
以上是生活随笔為你收集整理的Thymeleaf设置属性值的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Dubbo负载均衡原理
- 下一篇: Spring boot的put请求