{"id":896,"date":"2011-06-15T01:22:12","date_gmt":"2011-06-14T16:22:12","guid":{"rendered":"http:\/\/codaholic.org\/?p=896"},"modified":"2011-06-15T02:02:08","modified_gmt":"2011-06-14T17:02:08","slug":"javascript%e6%8c%87%e5%ae%9a%e6%99%82%e9%96%93%e5%be%8c%e3%81%ab%e9%96%a2%e6%95%b0%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/codaholic.org\/?p=896","title":{"rendered":"[Javascript]\u6307\u5b9a\u6642\u9593\u5f8c\u306b\u95a2\u6570\u3092\u5b9f\u884c\u3057\u305f\u308a\u3001\u4e00\u5b9a\u9593\u9694\u3067\u7e70\u308a\u8fd4\u3057\u306e\u51e6\u7406\u3092\u884c\u3046"},"content":{"rendered":"<p>Javascript\u306b\u306f\u6307\u5b9a\u3057\u305f\u6642\u9593\u304c\u7d4c\u904e\u3057\u305f\u5f8c\u306b\u95a2\u6570\u3092\u5b9f\u884c\u3057\u3066\u304f\u308c\u308bsetTimeout\u95a2\u6570\u304c\u3042\u308a\u307e\u3059\u3002\u7b2c\u4e00\u5f15\u6570\u306b\u5b9f\u884c\u3059\u308b\u95a2\u6570\u540d\u3001\u7b2c\u4e8c\u5f15\u6570\u306b\u5b9f\u884c\u3057\u305f\u3044\u7d4c\u904e\u6642\u9593\u3092\u30df\u30ea\u79d2\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5834\u5408\u3001greeting\u95a2\u6570\u30923000\u30df\u30ea\u79d2\u5f8c\uff083\u79d2\u5f8c\uff09\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u7d50\u679c\u7684\u306b\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3092\u3057\u3066\u304b\u30893\u79d2\u5f8c\u306bhello\u3068\u66f8\u304b\u308c\u305f\u30a2\u30e9\u30fc\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>[html]<br \/>\n<html><br \/>\n\t<head><br \/>\n\t\t<meta charset=\"UTF-8\" \/><br \/>\n\t\t<title>hoge<\/title><br \/>\n\t\t<script type=\"text\/javascript\">\n\t\t\tsetTimeout('greeting()', 3000);\n\t\t\tfunction greeting(){\n\t\t\t\talert('hello');\n\t\t\t}\n\t\t<\/script><br \/>\n\t<\/head><br \/>\n\t<body><br \/>\n\t<\/body><br \/>\n<\/html><br \/>\n[\/html]<\/p>\n<p>\u307e\u305f\u3001setTimeout\u95a2\u6570\u306e\u7b2c\u4e00\u5f15\u6570\u306f\u7121\u540d\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>[html]<br \/>\n<html><br \/>\n\t<head><br \/>\n\t\t<meta charset=\"UTF-8\" \/><br \/>\n\t\t<title>hoge<\/title><br \/>\n\t\t<script type=\"text\/javascript\">\n\t\t\tsetTimeout(function(){alert('hello')}, 3000);\n\t\t<\/script><br \/>\n\t<\/head><br \/>\n\t<body><br \/>\n\t<\/body><br \/>\n<\/html><br \/>\n[\/html]<\/p>\n<p>\u547c\u3073\u51fa\u3059\u95a2\u6570\u306b\u81ea\u5206\u81ea\u8eab\u3092\u6307\u5b9a\u3059\u308b\u3068\u4e00\u5b9a\u9593\u9694\u6bce\u306b\u5ef6\u3005\u3068\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u306fid\u300coutput\u300d\u304c\u6307\u5b9a\u3055\u308c\u305fdiv\u30bf\u30b0\u306e\u4e2d\u306bhello\u3068\u3044\u3046\u6587\u5b57\u5217\u30921\u79d2\u3054\u3068\u306b\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>[html]<br \/>\n<html><br \/>\n\t<head><br \/>\n\t\t<meta charset=\"UTF-8\" \/><br \/>\n\t\t<title>hoge<\/title><br \/>\n\t\t<script type=\"text\/javascript\">\n\t\t\twindow.onload = function(){\n\t\t\t\thoge();\n\t\t\t}\n\t\t\tfunction hoge(){\n\t\t\t\tdocument.getElementById('output').innerHTML += 'hello<br \/>';\n\t\t\t\tsetTimeout('hoge()', 1000);\n\t\t\t}\n\t\t<\/script><br \/>\n\t<\/head><br \/>\n\t<body><\/p>\n<div id=\"output\"><\/div>\n<p>\t<\/body><br \/>\n<\/html><br \/>\n[\/html]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Javascript\u306b\u306f\u6307\u5b9a\u3057\u305f\u6642\u9593\u304c\u7d4c\u904e\u3057\u305f\u5f8c\u306b\u95a2\u6570\u3092\u5b9f\u884c\u3057\u3066\u304f\u308c\u308bsetTimeout\u95a2\u6570\u304c\u3042\u308a\u307e\u3059\u3002\u7b2c\u4e00\u5f15\u6570\u306b\u5b9f\u884c\u3059\u308b\u95a2\u6570\u540d\u3001\u7b2c\u4e8c\u5f15\u6570\u306b\u5b9f\u884c\u3057\u305f\u3044\u7d4c\u904e\u6642\u9593\u3092\u30df\u30ea\u79d2\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5834\u5408\u3001greet [&hellip;]<\/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":[245,162],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gd1W-es","_links":{"self":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/896"}],"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=896"}],"version-history":[{"count":6,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/896\/revisions"}],"predecessor-version":[{"id":902,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/896\/revisions\/902"}],"wp:attachment":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}