티스토리 뷰
728x90
반응형
- previousElementSibling
-> 같은 레벨 이전 객체
- nextElementSibling
-> 같은 레벨 이전객체
- parenetElement
-> 상위 레벨의 객체
-insertAdjacentElement('포지션', '객체')
-> 객체 삽입
포지션 : beforebegin(element 앞) , beforeend(element 안에 첫번째 child), afterbegin(element 안에 마지막 child), afterend(element 뒤)
* beforeend 와 afterbegin은 꼭 부모가 있어야 한다.
728x90
'JavaScript' 카테고리의 다른 글
| 객체의 초기값이 {} 로 저장되어 있을 때 확인 방법 (0) | 2020.08.14 |
|---|---|
| 주소를 위도 경도, 위도경도를 주소로 (1) | 2020.05.21 |
| form 안의 button submit 막기 (0) | 2020.04.18 |
| a 태그에 이벤트 걸기 (0) | 2020.03.27 |
| JavaScript 인코딩, 디코딩 처리하기 (0) | 2020.02.29 |
댓글