반응형
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
- html
- HashMap
- javascript
- vscode
- Array
- 정규식
- Eclipse
- Button
- input
- ArrayList
- 이탈리아
- 문자열
- CSS
- 배열
- 이클립스
- table
- Java
- 자바스크립트
- Visual Studio Code
- CMD
- json
- string
- IntelliJ
- list
- date
- 인텔리제이
- js
- map
- replace
- 자바
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
