我怎样才能在百里香中做data-target ="#userId"

coo*_*cao 9 twitter-bootstrap thymeleaf

如何在百万美元的HTML文档中使用data-target ="#userId".对于喜欢,在任何JSP或任何HTML中,

<a href="#" data-toggle="modal" data-target="#resetPwModal${customer.uuid }">reset</a>
Run Code Online (Sandbox Code Playgroud)

我如何写一个百里香的HTML文档.像这样?

<a href="#" data-toggle="modal" data-th-target="#resetPwModal${customer.uuid }">reset</a>
Run Code Online (Sandbox Code Playgroud)

例外是:

org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "#" (user/userList.html:90)
Run Code Online (Sandbox Code Playgroud)

coo*_*cao 28

th:attr="data-target='#customerModel'+${customer.uuid }" 
Run Code Online (Sandbox Code Playgroud)