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
- javascript
- modal
- UI
- es6
- yet
- expo
- snyk
- eas build
- HTML
- Empty
- react
- 앱 마케팅 전략
- innerText
- 커스텀 테마
- innerHTML
- Review
- 앱 시장 조사
- eas
- CSS
- js
- nodeValue
- a11y
- Event
- node.js
- addEventListener
- ES5
- textContent
- Dom
- 빌드 전 점검
- node
Archives
- Today
- Total
the murmurous sea
DOM: Node.textContent 본문
1. property of the Node interface.
2. sets or returns the text content of the specified node, and all its descendants.
3. set the textContent property
: any child nodes are removed and replaced by a single Text node containing the specified string.
[Syntax]
Return the text content of a node:
node.textContent
Set the text content of a node:
node.textContent = htmlString
[Return Value]
: A String, representing the text of the node and all its descendants.
: or Returns null if the element is a document, a document type, or a notation.
https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
'#dev > 개념정리' 카테고리의 다른 글
DOM: Element.innerHTML (0) | 2020.05.05 |
---|---|
DOM: HTMLElement.innerText (0) | 2020.05.05 |
DOM: Node.nodeValue (0) | 2020.05.05 |
DOM: nodeValue vs. textConent vs. innerText vs. innerHTML (0) | 2020.05.04 |
JS ES1: slice() (0) | 2020.05.04 |
Comments