th:onclick="함수명([[${파라미터명.value값}]])"
<button type="button" th:onclick="testFnc([[${test.aa}]])">확인</button>
괄호가 많아서 조심!! th:onclick=" testFnc ( [ [ ${ test.aa } ] ] ) "
'it-day > Thymeleaf' 카테고리의 다른 글
동적 text()쓰면 버튼 안에 img태그 없어짐...?? (0) | 2024.01.23 |
---|---|
버튼 클릭 시 이벤트(상세보기) (0) | 2023.10.25 |
th:내가 원하는 이름?!! (0) | 2023.10.23 |
th:each , th:if( null값과 빈 문자열(" ") 확인 ) (0) | 2023.09.22 |
Thymeleaf 날짜 형식 (0) | 2023.09.21 |