我该怎么做 data-target="#userId";在百里香叶 [英] How can I do data-target="#userId" in thymeleaf
本文介绍了我该怎么做 data-target="#userId";在百里香叶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 thymeleaf HTML 文档中使用 data-target="#userId".例如,在任何 JSP 或任何 HTML 中,
How can I user data-target="#userId" in a thymeleaf HTML doc. For like ,In any JSP or any HTML ,
<a href="#" data-toggle="modal" data-target="#resetPwModal${customer.uuid }">reset</a>
我如何在 thymeleaf HTML 文档中写作.像这样吗?
How I write in a thymeleaf HTML doc. like this?
<a href="#" data-toggle="modal" data-th-target="#resetPwModal${customer.uuid }">reset</a>
例外是:
org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "#" (user/userList.html:90)
推荐答案
th:attr="data-target='#customerModel'+${customer.uuid }"
这篇关于我该怎么做 data-target="#userId";在百里香叶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文