{"id":1278,"date":"2011-11-09T00:56:25","date_gmt":"2011-11-08T15:56:25","guid":{"rendered":"http:\/\/codaholic.org\/?p=1278"},"modified":"2022-01-01T15:57:47","modified_gmt":"2022-01-01T06:57:47","slug":"javascript%e7%84%a1%e5%90%8d%e9%96%a2%e6%95%b0%e3%82%92%e5%86%8d%e5%b8%b0%e7%9a%84%e3%81%ab%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99","status":"publish","type":"post","link":"https:\/\/codaholic.org\/?p=1278","title":{"rendered":"[JavaScript] \u7121\u540d\u95a2\u6570\u3092\u518d\u5e30\u7684\u306b\u547c\u3073\u51fa\u3059"},"content":{"rendered":"<p>\u7121\u540d\u95a2\u6570\u306b\u306f\u305d\u306e\u540d\u306e\u901a\u308a\u540d\u524d\u304c\u306a\u3044\u306e\u3067\u95a2\u6570\u540d\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u304c\u3001arguments \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e callee \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3046\u3053\u3068\u3067\u81ea\u5206\u81ea\u8eab\u3092\u518d\u5e30\u7684\u306b\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4e0b\u8a18\u306fid\u300ctarget\u300d\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u8981\u7d20\u306bsaitama\u3068\u3044\u3046\u6587\u5b57\u5217\u30921\u79d2\u3054\u3068\u306b\u5ef6\u3005\u3068\u8868\u793a\u3057\u7d9a\u3051\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002setTimeout \u306b\u6e21\u3059\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 arguments.callee \u3068\u3059\u308b\u3053\u3068\u3067\u81ea\u5206\u81ea\u8eab\u306e\u95a2\u6570\u540d\u3092\u66f8\u304b\u305a\u306b\u793a\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>setTimeout \u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u306f<a href=\"\/?p=896\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3067\u3082\u4ee5\u524d\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-html\">&lt;html&gt;\n    &lt;head&gt;\n        &lt;meta charset=\"UTF-8\" \/&gt;\n        &lt;script type=\"text\/javascript\"&gt;\n            window.onload = function(){\n                var hoge = function(){\n                    document.getElementById('target').innerHTML += 'saitama&lt;br \/&gt;';\n                    setTimeout(arguments.callee, 1000);\n                }\n                hoge();\n            }\n        &lt;\/script&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n        &lt;div id=\"target\"&gt;&lt;\/div&gt;\n    &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>\u95a2\u6570\u540d\u3092\u76f4\u63a5\u66f8\u304f\u3053\u3068\u3092\u907f\u3051\u3089\u308c\u308c\u3070\u3001\u305d\u306e\u90e8\u54c1\u306e\u6c4e\u7528\u6027\u3092\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7121\u540d\u95a2\u6570\u306b\u306f\u305d\u306e\u540d\u306e\u901a\u308a\u540d\u524d\u304c\u306a\u3044\u306e\u3067\u95a2\u6570\u540d\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u304c\u3001arguments \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e callee \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3046\u3053\u3068\u3067\u81ea\u5206\u81ea\u8eab\u3092\u518d\u5e30\u7684\u306b\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[5],"tags":[181,182,245,129],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gd1W-kC","_links":{"self":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1278"}],"collection":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1278"}],"version-history":[{"count":10,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1278\/revisions"}],"predecessor-version":[{"id":2604,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1278\/revisions\/2604"}],"wp:attachment":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}