반응형
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
- CSS
- Button
- 자바스크립트
- 정규식
- ArrayList
- IntelliJ
- json
- CMD
- 자바
- javascript
- html
- js
- table
- 인텔리제이
- list
- input
- windows
- date
- 이탈리아
- 테이블
- Visual Studio Code
- Maven
- vscode
- 문자열
- 배열
- 이클립스
- Eclipse
- Java
- Array
- string
Archives
- Today
- Total
목록2020/08/11 (1)
어제 오늘 내일
[Javascript] node type 체크하기
DOM 노드의 타입을 체크하기 위해서는 nodeType 프로퍼티를 사용합니다. nodeType 프로퍼티 var type = node.nodeType; nodeType은 node의 type을 상수로 리턴합니다. 리턴 상수 타입 예제 1 element , 3 text Hello 4 CDATASection 7 ProcessingInstruction 8 Comment 9 Document document 10 DocumentType 11 DocumentFragment 예제 안녕하세요? let elem = document.getElementById('sample'); const docuType = document.nodeType; const divType = elem.nodeType; const textType =..
IT/Javascript
2020. 8. 11. 01:09