Text()
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since 2017ë 10ì.
Experimental: ì´ ê¸°ë¥ì ì¤íì ì¸ ê¸°ë¥ì
ëë¤.
íë¡ëì
íê²½ìì ì¬ì©í기 ì ì ë¸ë¼ì°ì í¸íì± í를 주ì ê¹ê² íì¸íì¸ì.
Text() ìì±ìë ìµì
ì¸ íë¼ë¯¸í°ë¡ 주ì´ì§ 문ìí 컨í
ì¸ ì¸ DOMString ì¼ë¡ ìë¡ê² ìì±ë Text ê°ì²´ë¥¼ ë°íí©ëë¤.
문ë²
js
text1 = new Text(); // ë¹ í
ì¤í¸ ë
¸ë ìì±
text2 = new Text("í
ì¤í¸ ë
¸ëì
ëë¤");
ìì
js
text = new Text("Test");
ëª ì¸
| Specification |
|---|
| DOM > # ref-for-dom-text-textâ > |