Using thymeleaf variable in onclick attribute

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

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

6条回答
  •  走了就别回头了
    2021-02-01 18:38

    In 3.0.10 version of Thymeleaf

    use [[ ]] it's more easier , thymeleaf goes to inject the value in template

    if the value is string no quote need

    
    

提交回复
热议问题