{"id":5990,"date":"2020-07-19T11:17:50","date_gmt":"2020-07-19T02:17:50","guid":{"rendered":"https:\/\/nsme.red\/wp\/?p=5990"},"modified":"2020-07-28T11:40:30","modified_gmt":"2020-07-28T02:40:30","slug":"submit%e3%82%92%e3%81%95%e3%81%9b%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/core.nsme.net\/notes\/vue-js\/form\/5990\/","title":{"rendered":"submit\u3092\u3055\u305b\u306a\u3044"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u308a\u3001enter\u30ad\u30fc\u3092\u304a\u3057\u305f\u3089\u30d6\u30e9\u30a6\u30b6\u304csubmit\u3057\u3066\u3057\u307e\u3046\u306e\u3092\u9632\u3050\u305f\u3081\u3001form\u30bf\u30b0\u306b\u8ffd\u52a0\u3059\u308b\u3002<br><strong>@submit.prevent<\/strong><br>\u72ec\u81ea\u306e\u51e6\u7406\u3092\u542b\u3081\u308b\u5834\u5408\u306f\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;form id=\"form\" v-on:submit.prevent=\"exec\"><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>methods: {\nexec: function(){\nconst fd = new FormData(document.getElementById('form'));\n\/\/ for (let d of fd.entries()) {\n\/\/ console.log(${d&#91;0]}: ${d&#91;1]});\n\n}\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u308a\u3001enter\u30ad\u30fc\u3092\u304a\u3057\u305f\u3089\u30d6\u30e9\u30a6\u30b6\u304csubmit\u3057\u3066\u3057\u307e\u3046\u306e\u3092\u9632\u3050\u305f\u3081\u3001form\u30bf\u30b0\u306b\u8ffd\u52a0\u3059\u308b\u3002@submit.prevent\u72ec\u81ea\u306e\u51e6\u7406\u3092\u542b\u3081\u308b\u5834\u5408\u306f\u3001<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"class_list":["post-5990","post","type-post","status-publish","format-standard","hentry","category-form"],"acf":[],"_links":{"self":[{"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/posts\/5990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/comments?post=5990"}],"version-history":[{"count":6,"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/posts\/5990\/revisions"}],"predecessor-version":[{"id":6013,"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/posts\/5990\/revisions\/6013"}],"wp:attachment":[{"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/media?parent=5990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/categories?post=5990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/core.nsme.net\/notes\/wp-json\/wp\/v2\/tags?post=5990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}