{"id":3045,"date":"2013-09-11T13:46:52","date_gmt":"2013-09-11T04:46:52","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=3045"},"modified":"2017-05-17T18:40:47","modified_gmt":"2017-05-17T09:40:47","slug":"post-3045","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/javascript\/3045","title":{"rendered":"JavaScript Ninja\u306f\u5168\u3066\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u4e00\u5ea6\u306f\u8aad\u3093\u3067\u304a\u304f\u3079\u304d\u672c"},"content":{"rendered":"<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4798128457\/ref=as_li_qf_sp_asin_il?ie=UTF8&#038;camp=247&#038;creative=1211&#038;creativeASIN=4798128457&#038;linkCode=as2&#038;tag=toriaezu04b-22\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&#038;ASIN=4798128457&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=toriaezu04b-22\" ><\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=toriaezu04b-22&#038;l=as2&#038;o=9&#038;a=4798128457\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/><\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4798128457\/ref=as_li_qf_sp_asin_tl?ie=UTF8&#038;camp=247&#038;creative=1211&#038;creativeASIN=4798128457&#038;linkCode=as2&#038;tag=toriaezu04b-22\">JavaScript Ninja\u306e\u6975\u610f \u30e9\u30a4\u30d6\u30e9\u30ea\u958b\u767a\u306e\u305f\u3081\u306e\u77e5\u8b58\u3068\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=toriaezu04b-22&#038;l=as2&#038;o=9&#038;a=4798128457\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/><\/p>\n<p>\u5f15\u304d\u7d9a\u304d\u3001\u300cJavaScript Ninja\u306e\u6975\u610f\u300d\u3092\u8aad\u3093\u3067\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u672c\u66f8\u306b\u306f\u30b8\u30e7\u30f3\u30fb\u30ec\u30b7\u30b0\u304cjQuery\u3092\u4f5c\u6210\u3057\u3066\u304f\u904e\u7a0b\u3067\u5f97\u305f\u3067\u3042\u308d\u3046\u5404\u30d6\u30e9\u30a6\u30b6\u306e\u5dee\u7570\u3084\u4e0d\u53ef\u601d\u8b70\u306a\u4ed5\u69d8\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u304c\u3075\u3093\u3060\u3093\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4e0a\u5fcd\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u306f\u77e5\u3063\u3066\u3044\u3066\u5f53\u305f\u308a\u524d\u306e\u3053\u3068\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u666e\u6bb5jQuery\u306a\u3069\u30d6\u30e9\u30a6\u30b6\u9593\u306e\u5dee\u3092\u57cb\u3081\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u983c\u308a\u5207\u308a\u3060\u3063\u305f\u81ea\u5206\u306b\u306f\u76ee\u304b\u3089\u9c57\u306a\u60c5\u5831\u3070\u304b\u308a\u3067\u3057\u305f\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3053\u3093\u306a\u306e\u3002<\/p>\n<blockquote><p>\u300c\u30d5\u30a9\u30fc\u30e0\u306b\u542b\u307e\u308c\u3066\u3044\u3066\u3001\u305d\u306eform\u8981\u7d20\u304b\u3089\u53c2\u7167\u3055\u308c\u308binput\u8981\u7d20\u300d\u306e\u305d\u308c\u305e\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u3001\u305d\u306eform\u8981\u7d20\u306b\u8ffd\u52a0\u3059\u308b\u3002<\/p><\/blockquote>\n<p>\u901a\u5e38\u3001javaScript\u3067\u30d5\u30a9\u30fc\u30e0\u3092\u9001\u4fe1(submit)\u3068\u3059\u308b\u5834\u5408\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \" >document.getElementById('form').submit();\r\n<\/pre>\n<p>\u3057\u304b\u3057\u3001form\u5185\u306b\u3042\u308binput\u8981\u7d20\u306a\u3069\u306eid\u5c5e\u6027\u3084name\u5c5e\u6027\u306b\u300csubmit\u300d\u3068\u3044\u3046\u540d\u524d\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u30a8\u30e9\u30fc\u3092\u8d77\u3053\u3057\u307e\u3059\u3002<br \/>\n\u306a\u305c\u306a\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u304cinput\u8981\u7d20\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092form\u8981\u7d20\u306b\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306bsubmit\u30e1\u30bd\u30c3\u30c9\u304c\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3057\u307e\u3046\u304b\u3089\u3060\uff01<\/p>\n<p>\u2026\u2026\u306a\u306b\u305d\u308c\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u30b5\u30f3\u30d7\u30eb\u3002<\/p>\n<pre class=\"lang:xhtml decode:true \" >&lt;form id=&quot;form1&quot;&gt;\r\n    &lt;input type=&quot;text&quot;&gt;&lt;\/input&gt;\r\n&lt;\/form&gt;\r\n\r\n&lt;form id=&quot;form2&quot;&gt;\r\n    &lt;input id=&quot;submit&quot; type=&quot;text&quot;&gt;&lt;\/input&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<pre class=\"lang:js decode:true \" >document.getElementById('form1').submit.toString();\r\n\/\/-&gt; 'function submit() { [native code] }'\r\ndocument.getElementById('form2').submit.toString()\r\n\/\/-&gt; &quot;[object HTMLInputElement]&quot;  \/\/\u30db\u30f3\u30c8\u306bsubmit\u30e1\u30bd\u30c3\u30c9\u304c\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3044\u308b orz\r\n<\/pre>\n<p>\u672c\u5f53\u3060\u2026\u2026input\u8981\u7d20\u306eid\u5c5e\u6027\u306b\u300csubmit\u300d\u3092\u6307\u5b9a\u3057\u305f\u3053\u3068\u306b\u3088\u3063\u3066\u3001form2\u306esubmit\u30e1\u30bd\u30c3\u30c9\u304cinput\u8981\u7d20\u3078\u306e\u53c2\u7167\u3067\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u6700\u65b0\u306eChrome\u3067\u78ba\u8a8d\u3057\u3066\u3082\u540c\u69d8\u3060\u3063\u305f\u306e\u3067\u3001\u3053\u306e\u6319\u52d5\u306f\u6b63\u5f0f\u306a\u4ed5\u69d8\u306a\u3093\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u3053\u308c\u306f\u77e5\u3089\u306a\u3044\u3068\u5d4c\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>JavaScript Ninja\u306b\u306f\u3053\u3093\u306a\u60c5\u5831\u304c\u3066\u3093\u3053\u76db\u308a\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u304b\u672c\u66f8\u3092\u8aad\u3093\u3067\u3044\u308b\u3068\u3001\u81ea\u5206\u81ea\u8eab\u3067\u30af\u30ed\u30b9\u30d6\u30e9\u30a6\u30b6\u958b\u767a\u3092\u884c\u304a\u3046\u3068\u3044\u3046\u5fc3\u304c\u30ba\u30bf\u30ba\u30bf\u306b\u6298\u308c\u3066\u3044\u304d\u307e\u3059\uff57<br \/>\n\uff08\u7279\u306b11\u7ae0\u4ee5\u964d\u306f\u300c\u3053\u3093\u306a\u3093\u3001\u3084\u3063\u3066\u3089\u308c\u3063\u304b\u300d\u3068\u6295\u3052\u51fa\u3057\u305f\u304f\u306a\u308b\u307b\u3069\u3001\u30d6\u30e9\u30a6\u30b6\u9593\u306e\u5dee\u7570\u3084\u6319\u52d5\u306b\u3064\u3044\u3066\u306e\u8a18\u8ff0\u304c\u7d9a\u304d\u307e\u3059)<\/p>\n<p>\u30af\u30ed\u30b9\u30d6\u30e9\u30a6\u30b6\u5bfe\u7b56\u306b\u5fc5\u8981\u306a\u306e\u306f\u3001\u307e\u3055\u306b\u5fcd\u8010\u306a\u306e\u3060\u306a\u30fc\u3068\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u9593\u306e\u5dee\u7570\u3084\u30d6\u30e9\u30a6\u30b6\u304c\u884c\u3046\u304a\u304b\u3057\u306a\u6319\u52d5\u306b\u3064\u3044\u3066\u3001\u3053\u3053\u307e\u3067\u307e\u3068\u307e\u3063\u305f\u60c5\u5831\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u66f8\u7c4d\u306f\u306a\u304b\u306a\u304b\u7121\u3044\u3068\u304a\u3082\u3044\u307e\u3059\u306e\u3067\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u958b\u767a\u306b\u643a\u308f\u308b\u65b9\u5168\u3066\u306b\u304a\u52e7\u3081\u3067\u3059\u3002<\/p>\n<p>\u4e00\u901a\u308a\u76ee\u3092\u901a\u3057\u3066\u304a\u304f\u3060\u3051\u3067\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u958b\u767a\u6642\u306b\u30cf\u30de\u308a\u3053\u3093\u3067\u3057\u307e\u3046\u3053\u3068\u304c\u5c11\u306a\u304f\u306a\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript Ninja\u306e\u6975\u610f \u30e9\u30a4\u30d6\u30e9\u30ea&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3040,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,43],"tags":[],"class_list":["post-3045","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-book","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/3045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=3045"}],"version-history":[{"count":1,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/3045\/revisions"}],"predecessor-version":[{"id":3278,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/3045\/revisions\/3278"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/3040"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=3045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=3045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=3045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}