it-day/Thymeleaf
th:내가 원하는 이름?!!
별지킴Lee
2023. 10. 23. 09:22
다른 사람의 소스에 th:( ) 괄호에 처음 보는 문법이 있길래 찾아봤다!!!!!!!!!
onClick 및 onLoad 와 같은 JavaScript 이벤트 를 호출할 때 유용!!!!!!!!!!!!!!!
<button type="button" th:aa_id="${aa_id}" th:onclick="함수명(this.getAttribute('aa_id'))">
보기
</button>
th:onclick="함수명(this.getAttribute('aa_id') 때 this.getAttribute('aa_id')