{"id":406,"date":"2012-01-11T06:59:32","date_gmt":"2012-01-11T06:59:32","guid":{"rendered":"http:\/\/brain.dailyon.net\/?p=406"},"modified":"2012-01-11T06:59:32","modified_gmt":"2012-01-11T06:59:32","slug":"jquery-serialize-param-%ec%a0%95%eb%a6%ac","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=406","title":{"rendered":"jQuery : serialize(), param() \uc815\ub9ac"},"content":{"rendered":"<p>jQuery API \ubb38\uc11c <\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"EiSfdZFoCB\"><p><a href=\"https:\/\/api.jquery.com\/jQuery.param\/\">jQuery.param()<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;jQuery.param()&#8221; &#8212; jQuery API Documentation\" src=\"https:\/\/api.jquery.com\/jQuery.param\/embed\/#?secret=w7Op4fNyqS#?secret=EiSfdZFoCB\" data-secret=\"EiSfdZFoCB\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"bRdm2shBrt\"><p><a href=\"https:\/\/api.jquery.com\/serialize\/\">.serialize()<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;.serialize()&#8221; &#8212; jQuery API Documentation\" src=\"https:\/\/api.jquery.com\/serialize\/embed\/#?secret=Boaw31m9gI#?secret=bRdm2shBrt\" data-secret=\"bRdm2shBrt\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>jQuery\uc5d0\uc11c ajax() \ud568\uc218\uc758 \uae30\ubcf8 Content-Type\uc740 &#8220;application\/x-www-form-urlencoded&#8221;\uc774\ubbc0\ub85c \uc804\uc1a1\ud560 \ub370\uc774\ud130\ub294 query string \ud615\uc2dd\uc73c\ub85c \uc791\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \ucffc\ub9ac\uc2a4\ud2b8\ub9c1\uc740 &#8220;key1=value&amp;key2=value2&amp;\u2026&#8221;\uc640 \uac19\uc740 \ud3ec\ub9f7\uc744 \uac16\uc2b5\ub2c8\ub2e4.<\/p>\n<p>1. form \uc694\uc18c \uac12\ub4e4\uc744 query string\uc73c\ub85c \ub9cc\ub4e4\uae30<\/p>\n<p>$(&#8216;#\ud3fcID&#8217;).serialize() <\/p>\n<p>2. javascript \uac1d\uccb4\ub97c query string\uc73c\ub85c \ub9cc\ub4e4\uae30<\/p>\n<p>jQuery.param(\uac1d\uccb4)<\/p>\n<p>\ub9cc\uc57d \uc694\uccad Content-Type\uc744 &#8220;application\/json&#8221; \uc73c\ub85c \ubcc0\uacbd\ud55c \uacbd\uc6b0\uc5d0\ub294 \ucffc\ub9ac\uc2a4\ud2b8\ub9c1\uc774 \uc544\ub2c8\ub77c json \ud615\uc2dd\uc758 \uc2a4\ud2b8\ub9c1\uc73c\ub85c \ub370\uc774\ud130\ub97c \uc804\uc1a1\ud574\uc57c \ud569\ub2c8\ub2e4.<br \/>\nform\uc5d8\ub9ac\uba3c\ud2b8 \uac12\ub4e4\uc744 json \uac1d\uccb4\ub85c \ub9cc\ub4e4\uc5b4\uc8fc\ub294 \ubc29\ubc95\uc740 \ub2e4\uc74c \uc0ac\uc774\ud2b8\uc5d0 \ub2e4\uc591\ud55c \ubc29\ubc95\uc774 \ub098\uc640\uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/1184624\/serialize-form-to-json-with-jquery<\/p>\n<p>\uc2e4\uc81c ajax() \ud568\uc218\uc5d0\uc11c\ub294 json \uac1d\uccb4\ub97c \uc2a4\ud2b8\ub9c1 \ud0c0\uc785\uc73c\ub85c \ubc14\uafd4\uc11c \ub300\uc785\ud569\ub2c8\ub2e4.<\/p>\n<p>JSON.stringify(json\uac1d\uccb4)<\/p>\n<p>\uadf8\ub7ec\ub098 \ucffc\ub9ac\uc2a4\ud2b8\ub9c1 \ud615\uc2dd\uc774 \uac00\ub2a5\ud55c \uc0c1\ud669\uc5d0\uc11c \uad73\uc774 json \ud615\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \ubcf4\ub0b4\ub294 \uac83\uc740 \ubcc4\ub85c \uad8c\uc7a5\ud558\uc9c0 \uc54a\ub294 \ub4ef\ud569\ub2c8\ub2e4.<\/p>\n<p>\ucd9c\ucc98 : http:\/\/ecogeo.tistory.com\/305<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery API \ubb38\uc11c jQuery.param() .serialize() jQuery\uc5d0\uc11c ajax() \ud568\uc218\uc758 \uae30\ubcf8 Content-Type\uc740 &#8220;application\/x-www-form-urlencoded&#8221;\uc774\ubbc0\ub85c \uc804\uc1a1\ud560 \ub370\uc774\ud130\ub294 query string \ud615\uc2dd\uc73c\ub85c \uc791\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \ucffc\ub9ac\uc2a4\ud2b8\ub9c1\uc740 &#8220;key1=value&amp;key2=value2&amp;\u2026&#8221;\uc640 \uac19\uc740 \ud3ec\ub9f7\uc744 \uac16\uc2b5\ub2c8\ub2e4. 1. form \uc694\uc18c \uac12\ub4e4\uc744 query string\uc73c\ub85c \ub9cc\ub4e4\uae30&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\/406"}],"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=406"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}