반응형
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
- 자바스크립트
- CMD
- javascript
- 이클립스
- list
- 문자열
- input
- json
- Maven
- 인텔리제이
- string
- ArrayList
- Eclipse
- 이탈리아
- Visual Studio Code
- date
- 자바
- vscode
- CSS
- js
- Button
- table
- 배열
- 정규식
- Array
- 테이블
- html
- Java
- windows
- IntelliJ
Archives
- Today
- Total
목록nodeType (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