2019.08.09
Script 영역에서 CDATA 블럭으로 묶고 ${변수}를 사용한다
ex)
| 
 1 
2 
3 
4 
5 
6 
 | 
 <script th:inline="javascript"> 
    var scriptCurrentPage = [[${currentPage}]]; 
    $('#nextBtn').click(function() { 
        alert(scriptCurrentPage); 
    }); 
</script> 
 | 
'교육 > Spring Boot' 카테고리의 다른 글
| #85 MyBatis AS 대신 resultMap 활용하기 (0) | 2019.09.16 | 
|---|---|
| #75 Spring 인터셉터 로그인체크 (0) | 2019.08.29 | 
| #62 Spring Boot 페이징 처리 (0) | 2019.08.08 | 
| #60 Spring Boot 로그인 처리 (0) | 2019.08.06 | 
| #59 Spring Boot log4j 설정 (0) | 2019.08.05 |