Using thymeleaf variable in onclick attribute

前端 未结 6 1171
不知归路
不知归路 2021-02-01 18:15

In my current spring-boot project, I have one view with this html code:

6条回答
  •  情书的邮戳
    2021-02-01 18:47

    I solve this issue with this approach:

    th:onclick="|upload('${command['class'].simpleName}', '${gallery}')|"
    

提交回复
热议问题