{"id":121,"date":"2017-09-22T22:36:00","date_gmt":"2017-09-22T13:36:00","guid":{"rendered":"https:\/\/www.mithril.info\/cms\/?p=121"},"modified":"2019-01-12T18:45:09","modified_gmt":"2019-01-12T09:45:09","slug":"%e7%8f%be%e5%9c%a8%e6%99%82%e5%88%bb%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.mithril.info\/cms\/2017\/09\/22\/%e7%8f%be%e5%9c%a8%e6%99%82%e5%88%bb%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82\/","title":{"rendered":"\u73fe\u5728\u6642\u523b\u3092\u8868\u793a\u3057\u3066\u307f\u308b\u3002"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306b\u306b\u3082\u6642\u8a08\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u3088\u3046\u3068\u3057\u305f\u3051\u308c\u3069\u3001\u3069\u3046\u306b\u3082\u30e6\u30fc\u30b6\u7aef\u672b\u306b\u3088\u308a\u307e\u3061\u307e\u3061\u3002<\/p>\n<p>\u305d\u3053\u3067\u73fe\u5728\u6642\u523b\u3092\u8868\u793a\u3059\u308bjavascript\u3067\u8a2d\u7f6e\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/www.tagindex.com\/javascript\/time\/now2.html\">TAGindex<\/a>\u3055\u3093\u306e\u4f8b\u3067\u5b9f\u8df5\u3057\u3066\u307f\u308b\u3002<\/p>\n<hr \/>\n<div class=\"center\">\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">&lt;script type=&quot;text\/javascript&quot;&gt;\r\n&lt;!--\r\n\r\nvar weeks = new Array('\u65e5','\u6708','\u706b','\u6c34','\u6728','\u91d1','\u571f');\r\n\r\nvar now = new Date();\r\n\r\nvar year = now.getYear(); \/\/ \u5e74\r\nvar month = now.getMonth() + 1; \/\/ \u6708\r\nvar day = now.getDate(); \/\/ \u65e5\r\nvar week = weeks&#x5B; now.getDay() ]; \/\/ \u66dc\u65e5\r\nvar hour = now.getHours(); \/\/ \u6642\r\nvar min = now.getMinutes(); \/\/ \u5206\r\nvar sec = now.getSeconds(); \/\/ \u79d2\r\n\r\nif(year &lt; 2000) { year += 1900; }\r\n\r\n\/\/ \u6570\u5024\u304c1\u6841\u306e\u5834\u5408\u3001\u982d\u306b0\u3092\u4ed8\u3051\u30662\u6841\u3067\u8868\u793a\u3059\u308b\u6307\u5b9a\r\nif(month &lt; 10) { month = &quot;0&quot; + month; }\r\nif(day &lt; 10) { day = &quot;0&quot; + day; }\r\nif(hour &lt; 10) { hour = &quot;0&quot; + hour; }\r\nif(min &lt; 10) { min = &quot;0&quot; + min; }\r\nif(sec &lt; 10) { sec = &quot;0&quot; + sec; }\r\n\r\n\/\/ \u8868\u793a\u958b\u59cb\r\ndocument.write('\u73fe\u5728\uff1a&lt;b&gt;' + year + '\u5e74' + month + '\u6708' + day + '\u65e5\uff08' + week + '\uff09');\r\ndocument.write(hour + '\u6642' + min + '\u5206' + sec + '\u79d2&lt;\/b&gt;');\r\n\/\/ \u8868\u793a\u7d42\u4e86\r\n\r\n\/\/--&gt;\r\n&lt;\/script&gt;<\/pre>\n<p><script type=\"text\/javascript\">\n<!--\n \nvar weeks = new Array('\u65e5','\u6708','\u706b','\u6c34','\u6728','\u91d1','\u571f');\n \nvar now = new Date();\n \nvar year = now.getYear(); \/\/ \u5e74\nvar month = now.getMonth() + 1; \/\/ \u6708\nvar day = now.getDate(); \/\/ \u65e5\nvar week = weeks[ now.getDay() ]; \/\/ \u66dc\u65e5\nvar hour = now.getHours(); \/\/ \u6642\nvar min = now.getMinutes(); \/\/ \u5206\nvar sec = now.getSeconds(); \/\/ \u79d2\n \nif(year < 2000) { year += 1900; }\n \n\/\/ \u6570\u5024\u304c1\u6841\u306e\u5834\u5408\u3001\u982d\u306b0\u3092\u4ed8\u3051\u30662\u6841\u3067\u8868\u793a\u3059\u308b\u6307\u5b9a\nif(month < 10) { month = \"0\" + month; }\nif(day < 10) { day = \"0\" + day; }\nif(hour < 10) { hour = \"0\" + hour; }\nif(min < 10) { min = \"0\" + min; }\nif(sec < 10) { sec = \"0\" + sec; }\n \n\/\/ \u8868\u793a\u958b\u59cb\ndocument.write('\u73fe\u5728\uff1a<b>' + year + '\u5e74' + month + '\u6708' + day + '\u65e5\uff08' + week + '\uff09');\ndocument.write(hour + '\u6642' + min + '\u5206' + sec + '\u79d2<\/b>');\n\/\/ \u8868\u793a\u7d42\u4e86\n \n\/\/-->\n<\/script>\n<\/div>\n<hr \/>\n<p>\u7533\u3057\u5206\u306a\u304f\u4e0a\u624b\u304f\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n\u3060\u304c\u3001\u3069\u3046\u306b\u3082\u7aef\u672b\u5074\u306e\u6642\u8a08\u304c\u539f\u56e0\u3067\u5206\u5358\u4f4d\u3067\u305a\u308c\u3066\u3057\u307e\u3046\u3002<br \/>\n\u30b9\u30de\u30db\u7b49\u3067\u306f\u554f\u984c\u306a\u304b\u3063\u305f\u3002<br \/>\n\u4eca\u5ea6\u306f\u6b63\u78ba\u306a\u73fe\u5728\u6642\u523b\u3092\u8868\u793a\u3057\u3066\u307f\u305f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306b\u306b\u3082\u6642\u8a08\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u3088\u3046\u3068\u3057\u305f\u3051\u308c\u3069\u3001\u3069\u3046\u306b\u3082\u30e6\u30fc\u30b6\u7aef\u672b\u306b\u3088\u308a\u307e\u3061\u307e\u3061\u3002 \u305d\u3053\u3067\u73fe\u5728\u6642\u523b\u3092\u8868\u793a\u3059\u308bjavascript\u3067\u8a2d\u7f6e\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u307e\u305a\u3001TAGindex\u3055\u3093\u306e\u4f8b\u3067\u5b9f\u8df5\u3057\u3066\u307f\u308b\u3002 &lt;scrip [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":217,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[27],"tags":[29],"class_list":["post-121","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-27","tag-javascript"],"_links":{"self":[{"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":17,"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":1178,"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/posts\/121\/revisions\/1178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/media\/217"}],"wp:attachment":[{"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mithril.info\/cms\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}