{"id":454,"date":"2012-01-27T02:54:47","date_gmt":"2012-01-27T02:54:47","guid":{"rendered":"http:\/\/brain.dailyon.net\/?p=454"},"modified":"2012-01-27T02:54:47","modified_gmt":"2012-01-27T02:54:47","slug":"jquery-end-%ec%9d%b4%ec%a0%84%ec%9c%bc%eb%a1%9c-%eb%8f%8c%ec%95%84%ea%b0%80%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=454","title":{"rendered":"jQuery : end() \uc774\uc804\uc73c\ub85c \ub3cc\uc544\uac00\uae30"},"content":{"rendered":"<h1>jquery end() \uba54\uc18c\ub4dc<\/h1>\n<p>\uc751\uc6a9 : clone() ?&gt; DOM\uc81c\uac70 &gt; end() ?&gt; \uc218\uc815\ub41c DOM\uc744 \uc5bb\uc744\uc218\uc788\ub2e4.<\/p>\n<p>\uc6d0\ubb38\uc740 \uc5ec\uae30\uc5d0\uc11c \ubcfc \uc218\uc788\ub2e4<a href=\"http:\/\/api.jquery.com\/end\/\" target=\"_blank\">http:\/\/api.jquery.com\/end\/<\/a><\/p>\n<dl>\n<dt><strong>.end()<\/strong><\/dt>\n<dd>end() \uba54\uc18c\ub4dc\ub294 \ud604\uc7ac\uc758 \uc5d8\ub9ac\uba3c\ud2b8 \ubc14\ub85c \uc55e\uc758 \uc5d8\ub9ac\uba3c\ud2b8\ub97c \uc9c0\uce6d\ud55c\ub2e4. \ub2e4\uc74c\uc608\uc81c\ub97c\ubcf4\uc790<\/dd>\n<\/dl>\n<div>\n<div>\n<div><code>1.<\/code><code>&lt;<\/code><code>div<\/code><code>&gt;<\/code><\/div>\n<div><code>2.<\/code><code>&lt;<\/code><code>p<\/code><code>&gt;Hm..&lt;\/<\/code><code>p<\/code><code>&gt;<\/code><\/div>\n<div><code>3.<\/code><code>&lt;<\/code><code>p<\/code>?<code>id<\/code><code>=<\/code><code>\"test\"<\/code><code>&gt;this is the test&lt;\/<\/code><code>p<\/code><code>&gt;<\/code><\/div>\n<div><code>4.<\/code><code>&lt;\/<\/code><code>div<\/code><code>&gt;<\/code><\/div>\n<\/div>\n<\/div>\n<div>\n<div>\n<div><code>1.<\/code><code>$(document).ready(<\/code><code>function<\/code><code>() {<\/code><\/div>\n<div><code>2.<\/code><code>alert($(<\/code><code>'p'<\/code><code>).filter(<\/code><code>'#test'<\/code><code>).end().text());<\/code><\/div>\n<div><code>3.<\/code><code>});<\/code><\/div>\n<\/div>\n<\/div>\n<p>\uc2a4\ud06c\ub9bd\ud2b8 \uc18c\uc2a4\uc5d0\uc11c \uc811\uadfc\uc21c\uc11c\ub97c\ubcf4\uc790<\/p>\n<ol>\n<li><strong>$(&#8216;p&#8217;)<\/strong>?: p\uc5d8\ub9ac\uba3c\ud2b8\uc5d0 \uc811\uadfc<\/li>\n<li><strong>.filter(&#8216;#test&#8217;)?<\/strong>: #test\ub77c\ub294 \uc544\uc774\ub514\uc5d0 \uc811\uadfc<\/li>\n<li><strong>.end()<\/strong>?: \ud55c\ucc28\ub840\uc55e\uc758 \uac83\uc5d0 \uc811\uadfc\ud55c\ub2e4 \ub530\ub77c\uc11c p\uc5d0 \uc811\uadfc\ud558\uac8c \ub41c\ub2e4<\/li>\n<li>alert(<strong>$(&#8216;p&#8217;).filter(&#8216;#test&#8217;).end().text()<\/strong>); \uc18c\uc2a4\ub294 p\uc5d0\ub9ac\uba3c\ud2b8\uc548\uc758 \ud14d\uc2a4\ud2b8 Hm..this is the test\ub97c \ucd9c\ub825\uc2dc\ud0a8\ub2e4.<\/li>\n<\/ol>\n<h2>\uccb4\uc774\ub2dd(chaining)<\/h2>\n<p>end \ud568\uc218\uac00 \uc720\uc6a9\ud55c \uac83\uc740 \uc5ec\ub7ec\ubc88\uc0ac\uc6a9\ud558\uc5ec \uc5b4\ub5a4 \uc5d8\ub9ac\uba3c\ud2b8\ub97c \uc7ac\uc9c0\uc815 \ud560 \ud544\uc694\uc5c6\ub2e4\ub294 \uc810\uc774\ub2e4. \ub2e4\uc74c\uc608\uc81c\ub97c\ubcf4\uc790<\/p>\n<div>\n<div>\n<div><code>1.<\/code><code>$(<\/code><code>'form?'<\/code><code>)<\/code><\/div>\n<div><code>2.<\/code><code>.filter(<\/code><code>'.required'<\/code><code>).text( )<\/code><\/div>\n<div><code>3.<\/code><code>.end().end()<\/code><\/div>\n<div><code>4.<\/code><code>.filter(<\/code><code>'.conditional'<\/code><code>).text();<\/code><\/div>\n<\/div>\n<\/div>\n<p>$(&#8216;form &#8216;)\uc5d0 \ub300\ud574\uc11c end \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc811\uadfc \ud558\ub294 \ubc29\ubc95\uc744 \uc9dc\ub294 \uc18c\uc2a4\ub97c \uc904\uc5ec\uc8fc\uace0\uc788\ub2e4. \uc704\uc758 \uac83\uc774 \uc758\ubbf8\ud558\ub294 \ubc14\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<div>\n<div>\n<div><code>1.<\/code><code>$(<\/code><code>'form '<\/code><code>)<\/code><\/div>\n<div><code>2.<\/code><code>.filter(<\/code><code>'.required'<\/code><code>).text( );<\/code><\/div>\n<div><code>3.<\/code><code>$(<\/code><code>'form '<\/code><code>)???<\/code><\/div>\n<div><code>4.<\/code><code>.filter(<\/code><code>'.conditional'<\/code><code>).text();<\/code><\/div>\n<\/div>\n<\/div>\n<p>\uc544\ub798 \uc18c\uc2a4\ub97c \ubcf4\uba74\uc740 \uc811\uadfc\ud558\uae30 \uc704\ud574 $(&#8216;form &#8216;)\ub97c \ub450\ubc88\uc774\ub098 \uc0ac\uc6a9\ud588\ub2e4.end\ub97c \uc0ac\uc6a9\ud558\uba74 \uc774\ub7f4 \ud544\uc694\uc5c6\ub2e4. \ub610 \uc5ec\ub7ec\ubc88 \uc0ac\uc6a9\uac00\ub2a5\ud558\uae30\uc5d0 \ubc14\ub85c \uc55e\uc758\uac83\ub9cc \uc544\ub2cc \ub9e8 \uc55e\uc758\uac83\ub3c4 \uc120\ud0dd\ud560 \uc218 \uc788\ub294\uac83\uc774\ub2e4. \ub530\ub77c\uc11c?<strong>.end().end()<\/strong>\ub294<strong>$(&#8216;form &#8216;)?<\/strong>\ub97c \uc9c0\uce6d\ud55c\ub2e4.<\/p>\n<p>\uc774\ub7f0 end\ud568\uc218\uc758 \uae30\ub2a5\uc744?<strong>\uccb4\uc774\ub2dd(chaining)<\/strong>\uc774\ub77c\ud558\uba70?jQuery\uc758 \uc7a5\uc810\uc911 \ud558\ub098\uc774\ub2e4<\/p>\n<p>&nbsp;<\/p>\n<p>\ucd9c\ucc98 \ud83d\ude15<a href=\"http:\/\/siana.tistory.com\/entry\/jquery-end-%EB%A9%94%EC%86%8C%EB%93%9C\">http:\/\/siana.tistory.com\/entry\/jquery-end-%EB%A9%94%EC%86%8C%EB%93%9C<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>jquery end() \uba54\uc18c\ub4dc \uc751\uc6a9 : clone() ?&gt; DOM\uc81c\uac70 &gt; end() ?&gt; \uc218\uc815\ub41c DOM\uc744 \uc5bb\uc744\uc218\uc788\ub2e4. \uc6d0\ubb38\uc740 \uc5ec\uae30\uc5d0\uc11c \ubcfc \uc218\uc788\ub2e4http:\/\/api.jquery.com\/end\/ .end() end() \uba54\uc18c\ub4dc\ub294 \ud604\uc7ac\uc758 \uc5d8\ub9ac\uba3c\ud2b8 \ubc14\ub85c \uc55e\uc758 \uc5d8\ub9ac\uba3c\ud2b8\ub97c \uc9c0\uce6d\ud55c\ub2e4. \ub2e4\uc74c\uc608\uc81c\ub97c\ubcf4\uc790 1.&lt;div&gt; 2.&lt;p&gt;Hm..&lt;\/p&gt;&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/454"}],"collection":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=454"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/454\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}