This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Text() 생성자는 옵션인 파라미터로 주어진 문자형 컨텐츠인 DOMString 으로 새롭게 생성된 Text 객체를 반환합니다.

문법

text1 = new Text(); // 빈 텍스트 노드 생성
text2 = new Text("텍스트 노드입니다");

예제

text = new Text("Test");

명세

명세 상태 코멘트
DOM
The definition of 'Text.Text()' in that specification.
Living Standard 초기 정의.

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Experimental
Chrome Full support 28Edge ? Firefox Full support 24IE No support NoOpera Full support 15Safari Full support 8WebView Android Full support YesChrome Android Full support 28Edge Mobile ? Firefox Android Full support 24Opera Android Full support 15Safari iOS Full support 8Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

함께 보기

 

문서 태그 및 공헌자

이 페이지의 공헌자: cs09g
최종 변경자: cs09g,