Using thymeleaf variable in onclick attribute

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

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

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

    yes it's to late, but i hope this will help people who need it

    try this

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

提交回复
热议问题