ex01.html > SPRINGBOOT

본문 바로가기

사이트 내 전체검색

뒤로가기 SPRINGBOOT

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>




[콘솔 결과]

8481e423dfe5ed3f9c9f31920d7e2674_1717470348_9716.png
 

댓글목록 0

등록된 댓글이 없습니다.


Copyright © dancePKT. All rights reserved.
PC 버전으로 보기