ex01.html
페이지 정보
본문
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{/include/info :: html_head}">
<meta charset="UTF-8">
<title>index.html</title>
</head>
<table>
<table th:insert="~{/include/info :: top_table}"></table>
<div th:text="${list}"></div>
<div th:text="${dto}"></div>
<div th:text="${map}"></div>
<script>
var list = "[[${list}]]";
var dto = "[[${dto}]]";
var map = "[[${map}]]";
console.log(list);
console.log(dto);
console.log(map);
</script>
<script th:inline="javascript">
var list2 = [[${list}]];
var dto2 = [[${dto}]];
var map2 = [[${map}]];
console.log(list2);
console.log(dto2);
console.log(map2);
</script>
<table th:insert="~{/include/info :: bottom_table}"></table>
[콘솔 결과]
- 이전글SampleController.java 24.06.04
- 다음글== 공란 == 24.06.04
댓글목록
등록된 댓글이 없습니다.