Using thymeleaf variable in onclick attribute

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

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

6条回答
  •  广开言路
    2021-02-01 18:25

    thymeleaf 3.0.10 th:onclick thymeleaf variable not working

    This should work:

    th:attr="onclick=|upload('${gallery}')|" 
    

提交回复
热议问题