2017
11-22
11-22
thymeleaf使用附加属性data-*的方法
使用th:attr解决。
th:attr to the rescue Thymeleaf documentation - Setting attribute values.
For your scenario, this should do the job:
<div th:attr="data-el_id=${element.getId()}">
XML rules .... Read More >