{"id":5586,"date":"2024-06-01T09:19:04","date_gmt":"2024-06-01T01:19:04","guid":{"rendered":"https:\/\/0592ban.cn\/?p=5586"},"modified":"2024-06-01T09:19:04","modified_gmt":"2024-06-01T01:19:04","slug":"1990%e5%b9%b45%e6%9c%8830%e5%8f%b7%e5%87%ba%e7%94%9f%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-1990%e5%b9%b45%e6%9c%8813%e6%97%a5%e5%86%9c%e5%8e%86%e5%a5%b3%e5%ad%a9%e4%bb%80%e4%b9%88%e5%91%bd","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/06\/01\/1990%e5%b9%b45%e6%9c%8830%e5%8f%b7%e5%87%ba%e7%94%9f%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-1990%e5%b9%b45%e6%9c%8813%e6%97%a5%e5%86%9c%e5%8e%86%e5%a5%b3%e5%ad%a9%e4%bb%80%e4%b9%88%e5%91%bd\/","title":{"rendered":"1990\u5e745\u670830\u53f7\u51fa\u751f\u662f\u4ec0\u4e48\u661f\u5ea7 (1990\u5e745\u670813\u65e5\u519c\u5386\u5973\u5b69\u4ec0\u4e48\u547d)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"1990\u5e745\u670830\u53f7\u51fa\u751f\u662f\u4ec0\u4e48\u661f\u5ea7\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/06\/7b0a9ddd-d770-42b1-842c-5ed4e0d7b2b3.jpeg\"\/><\/p>\n<p>\n \u6839\u636e\u4f60\u7684\u9633\u5386\u51fa\u751f\u65e5\u671f\uff0c\u67e5\u8be2\u4f60\u7684\u661f\u5ea7\u3002\n<\/p>\n<form>\n <label for=\"date\"><br \/>\n  \u51fa\u751f\u65e5\u671f\uff1a<br \/>\n <\/label><br \/>\n <input id=\"date\" type=\"date\"\/><br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<p><script>\n document.querySelector('form').addEventListener('submit', e => {\n      e.preventDefault();\n      const date = document.querySelector('date').value;\n      const [year, month, day] = date.split('-');\n      const zodiac = getZodiac(parseInt(month), parseInt(day));\n      document.querySelector('result').innerHTML = `\u4f60\u7684\u661f\u5ea7\u662f\uff1a${zodiac}`;\n    });<\/p>\n<p>    function getZodiac(month, day) {\n      const zodiacs = [\n        {\n          start: [3, 21],\n          end: [4, 19],\n          name: '\u767d\u7f8a\u5ea7'\n        },\n        {\n          start: [4, 20],\n          end: [5, 20],\n          name: '\u91d1\u725b\u5ea7'\n        },\n        {\n          start: [5, 21],\n          end: [6, 21],\n          name: '\u53cc\u5b50\u5ea7'\n        },\n        {\n          start: [6, 22],\n          end: [7, 22],\n          name: '\u5de8\u87f9\u5ea7'\n        },\n        {\n          start: [7, 23],\n          end: [8, 22],\n          name: '\u72ee\u5b50\u5ea7'\n        },\n        {\n          start: [8, 23],\n          end: [9, 22],\n          name: '\u5904\u5973\u5ea7'\n        },\n        {\n          start: [9, 23],\n          end: [10, 23],\n          name: '\u5929\u79e4\u5ea7'\n        },\n        {\n          start: [10, 24],\n          end: [11, 21],\n          name: '\u5929\u874e\u5ea7'\n        },\n        {\n          start: [11, 22],\n          end: [12, 21],\n          name: '\u5c04\u624b\u5ea7'\n        },\n        {\n          start: [12, 22],\n          end: [1, 19],\n          name: '\u6469\u7faf\u5ea7'\n        },\n        {\n          start: [1, 20],\n          end: [2, 18],\n          name: '\u6c34\u74f6\u5ea7'\n        },\n        {\n          start: [2, 19],\n          end: [3, 20],\n          name: '\u53cc\u9c7c\u5ea7'\n        }\n      ];\n      for (const zodiac of zodiacs) {\n        if (month === zodiac.start[0] && day >= zodiac.start[1]) {\n          return zodiac.name;\n        } else if (month === zodiac.end[0] && day <= zodiac.end[1]) {\n          return zodiac.name;\n        }\n      }\n    }\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6839\u636e\u4f60\u7684\u9633\u5386\u51fa\u751f\u65e5\u671f\uff0c\u67e5\u8be2\u4f60\u7684\u661f\u5ea7\uff0c\u51fa\u751f\u65e5\u671f\uff0cdocument.querySelector\uff0cform\uff0c.addEventListener\uff0csubmit\uff0ce=\uff0ce.preventDefault\uff0cconstdate=document.querySelector\uff0cdate\uff0c.value\uff0cconst[year\uff0cmonth\uff0cday]=da&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":5585,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2962],"class_list":["post-5586","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-2962"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/5586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/comments?post=5586"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/5586\/revisions"}],"predecessor-version":[{"id":5587,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/5586\/revisions\/5587"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/5585"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=5586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=5586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=5586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}