[html]html안에 html넣는 방법
header처럼 공통으로 뺄라면..
header.html만들고...
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready( function() {
$("#header").load("common/header.html");
$("#leftside").load("common/leftside.html");
});
</script>
------------------------------------------
<body>
<div id="header"></div>
</body>
'web' 카테고리의 다른 글
[html]long -> int형으로 변환하는 방법 (0) | 2020.08.05 |
---|---|
[html]thymeleaf if 조건문 null check방법 (0) | 2020.07.29 |
[html]button onclick 이동가능하게 하는 방법 (0) | 2020.07.22 |
[spring boot]cannot pass a null grantedauthority collection 해결방법 (0) | 2020.07.15 |
[web]button link 방법 (0) | 2020.05.11 |