반응형
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
- There is no tracking information for the current branch
- Spring
- FrontEndDevelopment
- preventDefailt
- LearnCoding
- Oracle
- eclipse
- includes()
- 배열에 특정 요소 포함
- ReactHooks
- 스프링
- 배열
- CodingTutorial
- StateManagement
- CodeTutorial
- ProgrammingTips
- java
- 배열에 문자열
- 문자열 포함
- DeveloperTips
- ArrayMethods
- JavaScriptTutorial
- javascript
- sql
- maven
- WebDevelopment
- error
- SoftwareEngineering
- git lab
- JS
Archives
- Today
- Total
목록preventDefailt (1)
Code Party Lounge
[React] e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation()
1. e.preventDefailt() - 브라우저 고유의 동작을 중단시켜주는 역할. preventDefault() 메서드는 이벤트가 전파되는 것(*버블링이나 *캡쳐 단계)를 중지시키지는 않는다. 주로 사용되는 경우는 1. a 태그를 눌렀을 때 href 링크로 이동하지 않게 할 경우 2. form 태그 안에 submit 역할을 하는 버튼을 눌렀을 때 새로고침 하고싶지 않은 경우 * 이벤트 버블링이란? 자식 element에서 발생된 event가 부모 element순으로 전달되는 현상 * 이벤트 캡쳐링이란? 부모 element에서 발생된 event가 자삭 element순으로 전달되는 현상 2. e.stopPropagation() - 부모 엘리먼트에게 이벤트 전달을 중단시켜주는 역할. stopPropagati..
programing/React
2022. 12. 16. 13:40