Baseline Widely available
NodeList
ì node를 indexë¡ ëë ¤ì¤ëë¤. ì´ ë©ìëë ì¸ì(arguments)를 ì ê³µíë í exceptions ì throw íì§ ììµëë¤. indexê° ë²ì를 ë²ì´ëë©´ null
ê°ì´ ë°íëê³ , ì¸ìê° ì ê³µëì§ ìì¼ë©´ TypeError
ê° throw ë©ëë¤.
nodeItem = nodeList.item(index);
nodeList
ë NodeList
ì
ëë¤. ì¼ë°ì ì¼ë¡ childNodes ì ê°ì ë¤ë¥¸ DOM ìì±(property) ëë ë©ìëìì ê°ì ¸ìµëë¤.index
ë fetchë nodeì indexì
ëë¤. indexë 0 ìì ë¶í° ììí©ëë¤.nodeItem
ì item
ë©ìëê° ë°í í nodeList
ì node index
ì
ëë¤.JavaScriptë NodeList ìì index를 ì»ê¸° ìí, ë°°ì´ê³¼ ê°ì ë¸ë¼ì¼ 문ë²([])ì ì ê³µí©ëë¤ :
nodeItem = nodeList[index];
Example
var tables = document.getElementsByTagName("table");
var firstTable = tables.item(1); // or simply tables[1] - returns the second table in the DOM
Specification ë¸ë¼ì°ì í¸íì±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4