In order to correctly pass Thymeleaf variables to the onclick event, put the variable in a data attribute, and read it using getAttribute() . th:data- ...
確定! 回上一頁