Order(顺序) | Feature(特征) | Attributes(属性) |
1 | Fragment inclusion | th:insert 、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:value、 th:href、 th:src… |
7 | Text (tag body modification) | th:text 、th:utext |
8 | Fragment specification | th:fragment |
9 | Fragment removal | th:remove |
优先机制意味着与属性位置并无关系,只与属性名有关