Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 친해지기
- Coda
- DOM
- vscode
- column-gap
- 코드다이어리
- frontend
- regexp
- sass
- Pseudo
- CSS
- 코딩테스트
- CLASS
- 코딩일기
- tailwindcss
- HTML
- 선택자
- display
- row-gap
- 코딩퀴즈
- js
- 코딩문제
- JavaScript
- 가상클래스
- 정규식표현
- property
- 코드일기
- Grid
- scss
Archives
- Today
- Total
목록2024/08/08 (1)
< Code diaries />
HTML Node list를 Array로 converting 하기
NodeList와 HTML Collection은 유사배열객체라서 배열의 모든 메소드를 사용할 수는 없다. NodeList우리가 document.querySelectorAll()로 HTML elements를 가져오면 Nodelist로 들어온다. apple mango blueberry HTML Collectionchildren 속성으로 가져온 것은 유사배열객체이다. A B Cconst ul = document.querySelector('ul')const lis = ul.children;console.log(lis)// HTMLCollection(3) [ li, li, li ]
Javascript-DOM/02 - DOM 다루기
2024. 8. 8. 08:56