aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/node/lastchild/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/api/node/lastchild/index.html')
-rw-r--r--files/ko/web/api/node/lastchild/index.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/files/ko/web/api/node/lastchild/index.html b/files/ko/web/api/node/lastchild/index.html
new file mode 100644
index 0000000000..158ffdab32
--- /dev/null
+++ b/files/ko/web/api/node/lastchild/index.html
@@ -0,0 +1,25 @@
+---
+title: element.lastChild
+slug: Web/API/Node/lastChild
+tags:
+ - DOM
+ - Gecko
+ - Gecko DOM Reference
+translation_of: Web/API/Node/lastChild
+---
+<p>{{ ApiRef() }}</p>
+<h3 id=".EC.9A.94.EC.95.BD" name=".EC.9A.94.EC.95.BD">요약</h3>
+<p><b>lastChild</b>는 노드의 마지막 자식을 반환합니다.</p>
+<h3 id=".EA.B5.AC.EB.AC.B8.EA.B3.BC_.EA.B0.92" name=".EA.B5.AC.EB.AC.B8.EA.B3.BC_.EA.B0.92">구문과 값</h3>
+<pre class="eval"><i>last_child</i> = element.lastChild
+</pre>
+<p>반환되는 <code>last_child</code>는 노드입니다. 노드의 부모가 요소이면, 자식은 보통 요소 노드, 텍스트 노드, 주석 노드입니다.</p>
+<h3 id=".EC.98.88" name=".EC.98.88">예</h3>
+<pre>var tr = document.getElementById("row1");
+corner_td = tr.lastChild;
+</pre>
+<h3 id=".EC.A3.BC.EC.9D.98" name=".EC.A3.BC.EC.9D.98">주의</h3>
+<p>자식 요소가 없으면 <code>null</code>을 반환합니다.</p>
+<h3 id=".EB.AA.85.EC.84.B8" name=".EB.AA.85.EC.84.B8">명세</h3>
+<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-61AD09FB">lastChild </a></p>
+<p>{{ languages( { "en": "en/DOM/element.lastChild", "fr": "fr/DOM/element.lastChild", "pl": "pl/DOM/element.lastChild" } ) }}</p>