thymeleaf的属性优先级

所有Thymeleaf属性定义一个数字优先,建立他们的顺序执行的标签。这个顺序是:  

OrderFeatureAttributes
1 Fragment inclusion th:include
th:replace
2 Fragment iteration th:each
3 Conditional evaluation th:if
th:unless
th:switch
th:case
4 Local variable definition th:object
th:with
5 General attribute modification th:attr
th:attrprepend
th:attrappend
6 Specific attribute modification th:valueth:hrefth:src, etc.
7 Text (tag body modification) th:text
th:utext
8 Fragment specification th:fragment
9 Fragment removal th:remove
posted @ 2014-10-17 15:01  指尖舞步  阅读(844)  评论(0编辑  收藏  举报