ex01.html
페이지 정보
작성자 관리자 작성일 24-06-04 12:06 조회 51 댓글 0본문
<!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>
[콘솔 결과]
댓글목록 0
등록된 댓글이 없습니다.