본문 바로가기 메뉴 바로가기

ABBO 기술 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

ABBO 기술 블로그

검색하기 폼
  • 분류 전체보기 (467)
    • AI Trend (4)
    • Git (12)
    • Server (242)
    • Client (69)
    • Apple (31)
    • Study (109)
  • 방명록

thymeleaf switch case (1)
Thymeleaf 기본 문법

오랜만에 템플릿엔진인 타임리프의 유용한 사용법에 대해 적어보려고 합니다. th:id, th:value, th:text th:classappend : 클래스 동적 추가 코드가 01일때만 클래스 추가 not #strings.isEmpty( data ) : 문자열 null 체크, 빈값 체크 th:selected : select박스 selected 010 011 012 th:each : 반복문 ​ ​ th:if, th:unless 타입이 01일때 태그 노출 타입이 01이 아닐때 태그 노출 th:switch case 01 02 그 외 (생략가능) th:with : 변수설정 출처: https://nocount.tistory.com/197 [오류노트]

Client 2021. 11. 29. 23:19
이전 1 다음
이전 다음
공지사항

Blog is powered by Tistory / Designed by Tistory

티스토리툴바