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 |
Tags
- 객체
- 가상 요소 선택자
- 단방향 연결리스트
- 범용 선택자
- Array.from()
- 일반 형제 선택자 결합
- 쌍방향 연결리스트
- 고차함수
- 배열과 연결리스트의 차이
- visibility : hidden
- 배열의 오름차순
- invalid assignment left-hand side
- Sort
- Em
- 양방향 연결리스트
- map()
- for..of
- 배열의 내림차순
- disabled
- display : none
- classList.contains(string)
- filter()
- 인접 형제 선택자 결합
- 등차수열의 항 찾기
- Link
- innerhtml
- indexOf
- CSS
- nth-child()
- 백준알고리즘
Archives
- Today
- Total
목록querySelector() (1)
프론트엔드 센트럴파크 (☞゚ヮ゚)☞
querySelector() / querySelectorAll()
querySelector() : 하나의 element를 return해준다. 이름이 같은 class가 여러개 있어도 무조건 첫번째의 element만 가져온다. querySelectorAll() : 여러개의 element를 retrun해준다. (array 형태) HTML Hello JS const content = document.querySelector(".title h1"); JS 만약 id가 주어진다면 (div id = "title") const content = document.querySelector("#title"); 결론 const content = document.getElementById("title"); const content = document.querySelector("#title")..
Javascript
2022. 3. 12. 21:19