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 |
Tags
- async
- https://youtube.com/playlist?list=PLuHgQVnccGMA5836CvWfieEQy0T0ov6Jh&si=FTaYv8m21EhO-A2K
- setTimeout()
- eport
- mysql
- ajax
- Porject
- webpack
- await
- addEventListener
- js
- 동기
- slow and steady
- callback
- 혼프
- database
- Project
- 게임
- JS #프로젝트
- json
- https://m.blog.naver.com/tt2t2am1118/221010125300
- execCommand
- object
- db
- sql
- 비동기
- Import
- promise
- prj
- 참고블로그
Archives
- Today
- Total
C-log
section24~25-DOM이란~DOM 이벤트 본문
728x90
문서 객체 모델(DOM) - Web API | MDN
문서 객체 모델(DOM)은 메모리에 웹 페이지 문서 구조를 표현함으로써 스크립트 및 프로그래밍 언어와 페이지를 연결합니다. 이때 스크립트는 주로 JavaScript를 의미하나 HTML, SVG, XML 객체를 문서로
developer.mozilla.org
-getElementById | |
-getElementByTagName & className | |
-querySelector & querySelectorAll | -> All을 이용해서 배열로 지정할 수 있다. |
-innerHTML, textContent & innerText | |
-속성(Properties & methods)-Attributes | |
-style, window.getCompuredStyle : 스타일 변경하기 | scripts는 무조건 아래에 있어야한다. 많은 영향을 받는다. |
Event - Web API | MDN
Event 인터페이스는 DOM 내에 위치한 이벤트를 나타냅니다.
developer.mozilla.org
Manage Your Team’s Projects From Anywhere | Trello
Task management Use Trello to track, manage, complete, and bring tasks together like the pieces of a puzzle, and make your team’s projects a cohesive success every time.
trello.com
<button onclick="">/<button ondblclick=""> | ||
btn.onclick = function () {};
|
addEventListner와의 차이는? | |
btn3.addEventListener('click', function () {});
|
1.하나의 버튼으로 여러 함수를 불러올 수 있다. 2. {once : true}라는 구문을 사용할 수 있다. |
|
btn3.addEventListener ('click',function(e) {~});
|
여기서 오는 event를 의미 정확히 e가 어떻게 작동하는지 잘모름. |
|
e.preventDefault();
|
||
doucment.createElement();
|
||
const usernameInput = tweetForm.elements.property{username};
|
elemensts의 사용법이 미숙함. tweetForm이라는 Form태그 안에서 elements를 찾는다. |
|
.append(~)
|
append의 node의 순서가 헷갈린다. |
728x90
'📒JS > ⚡ver.0' 카테고리의 다른 글
section29-프로토타입, 클래스, 그리고 OOP(백엔드를 듣고 나중에 다시 들어도 무방하다) (0) | 2023.04.04 |
---|---|
section28-AJAX와API (0) | 2023.04.03 |
section27-비동기식 JavaScript (0) | 2023.03.30 |
section23-JavaScript의 최신 기능들 (0) | 2023.03.24 |
section22-콜백과 배열 (0) | 2023.03.24 |
Comments