{"id":65260,"date":"2025-01-19T03:03:13","date_gmt":"2025-01-18T19:03:13","guid":{"rendered":"https:\/\/0592ban.cn\/?p=65260"},"modified":"2025-01-19T03:03:13","modified_gmt":"2025-01-18T19:03:13","slug":"%e6%88%91%e7%9a%84%e6%98%9f%e5%ba%a7%e6%98%af-%e6%88%91%e7%94%9f%e4%ba%8e1995%e5%b9%b42%e6%9c%88-%e6%88%91%e7%9a%84%e6%98%9f%e5%ba%a7%e6%98%af%e6%88%91%e8%80%83%e4%bd%a0%e7%9a%84%e7%ac%ac%e4%b8%80","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2025\/01\/19\/%e6%88%91%e7%9a%84%e6%98%9f%e5%ba%a7%e6%98%af-%e6%88%91%e7%94%9f%e4%ba%8e1995%e5%b9%b42%e6%9c%88-%e6%88%91%e7%9a%84%e6%98%9f%e5%ba%a7%e6%98%af%e6%88%91%e8%80%83%e4%bd%a0%e7%9a%84%e7%ac%ac%e4%b8%80\/","title":{"rendered":"\u6211\u7684\u661f\u5ea7\u662f \u6211\u751f\u4e8e1995\u5e742\u6708 (\u6211\u7684\u661f\u5ea7\u662f\u6211\u8003\u4f60\u7684\u7b2c\u4e00\u9898)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u6211\u7684\u661f\u5ea7\u662f\u6211\u8003\u4f60\u7684\u7b2c\u4e00\u9898\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2025\/01\/f2c2bca6-96c0-4b18-a722-59962b97f712.jpeg\"\/><\/p>\n<p>\n \u8f93\u5165\u4f60\u7684\u51fa\u751f\u65e5\u671f\uff08\u9633\u5386\uff09\uff0c\u5373\u53ef\u67e5\u8be2\u4f60\u7684\u661f\u5ea7\uff1a\n<\/p>\n<form>\n <label for=\"birth_date\"><br \/>\n  \u51fa\u751f\u65e5\u671f\uff1a<br \/>\n <\/label><br \/>\n <input id=\"birth_date\" type=\"date\"\/><br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<p>\n<script>\n const zodiacSigns = [\n    {\n      name: \"\u767d\u7f8a\u5ea7\",\n      startDate: \"03\/21\",\n      endDate: \"04\/19\",\n    },\n    {\n      name: \"\u91d1\u725b\u5ea7\",\n      startDate: \"04\/20\",\n      endDate: \"05\/20\",\n    },\n    {\n      name: \"\u53cc\u5b50\u5ea7\",\n      startDate:\"05\/21\",\n      endDate: \"06\/20\",\n    },\n    {\n      name: \"\u5de8\u87f9\u5ea7\",\n      startDate: \"06\/21\",\n      endDate: \"07\/22\",\n    },\n    {\n      name: \"\u72ee\u5b50\u5ea7\",\n      startDate: \"07\/23\",\n      endDate: \"08\/22\",\n    },\n    {\n      name: \"\u5904\u5973\u5ea7\",\n      startDate: \"08\/23\",\n      endDate: \"09\/22\",\n    },\n    {\n      name: \"\u5929\u79e4\u5ea7\",\n      startDate: \"09\/23\",\n      endDate: \"10\/22\",\n    },\n    {\n      name: \"\u5929\u874e\u5ea7\",\n      startDate: \"10\/23\",\n      endDate: \"11\/21\",\n    },\n    {\n      name: \"\u5c04\u624b\u5ea7\",\n      startDate: \"11\/22\",\n      endDate: \"12\/21\",\n    },\n    {\n      name: \"\u6469\u7faf\u5ea7\",\n      startDate:\"12\/22\",\n      endDate: \"01\/19\",\n    },\n    {\n      name: \"\u6c34\u74f6\u5ea7\",\n      startDate: \"01\/20\",\n      endDate: \"02\/18\",\n    },\n    {\n      name: \"\u53cc\u9c7c\u5ea7\",\n      startDate: \"02\/19\",\n      endDate: \"03\/20\",\n    },\n  ];<\/p>\n<p>  const form = document.querySelector(\"form\");\n  const result = document.querySelector(\"result\");<\/p>\n<p>  form.addEventListener(\"submit\", (event) => {\n    event.preventDefault();<\/p>\n<p>    const birthDate = new Date(event.target.querySelector(\"input[type=date]\").value);\n    const month = birthDate.getMonth() + 1;\n    const day = birthDate.getDate();<\/p>\n<p>    let zodiacSign = \"\";<\/p>\n<p>    for (let i = 0; i < zodiacSigns.length; i++) {\n      const sign = zodiacSigns[i];\n      const startDate = new Date(sign.startDate.replace(\"\/\", \"\/1\/\"));\n      const endDate = new Date(sign.endDate.replace(\"\/\", \"\/1\/\"));\n\n      if (birthDate >= startDate && birthDate <= endDate) {\n        zodiacSign = sign.name;\n        break;\n      }\n    }\n\n    if (zodiacSign !== \"\") {\n      result.innerHTML = `\u4f60\u7684\u661f\u5ea7\u662f\uff1a${zodiacSign}`;\n    } else {\n      result.innerHTML = `\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u3002`;\n    }\n  });\n<\/script><\/p>\n<hr\/>\n<ul>\n<li>\n  2\u670818\u65e5\uff1a\u519c\u5386\u4e59\u4ea5\u5e74\u6b63\u6708\u5341\u4e5d\u65e5\u5b50\u65f6\n <\/li>\n<li>\n  2\u670823\u65e5\uff1a327\u56fd\u503a\u671f\u8d27\u98ce\u6ce2\u4e8b\u4ef6\n <\/li>\n<\/ul>\n<h3>\n 327\u56fd\u503a\u671f\u8d27\u98ce\u6ce2\u4e8b\u4ef6<br \/>\n<\/h3>\n<p>\n 327\u56fd\u503a\u671f\u8d27\u98ce\u6ce2\u4e8b\u4ef6\u662f\u63071995\u5e742\u670823\u65e5\u53d1\u751f\u5728\u4e0a\u6d77\u8bc1\u5238\u4ea4\u6613\u6240\u7684\u91cd\u5927\u8bc1\u5238\u671f\u8d27\u4e8b\u4ef6\u3002\u8be5\u4e8b\u4ef6\u56e0\u5f53\u65f6\u6caa\u5e02\u4e3b\u8981\u4ea4\u6613\u54c1\u79cd327\u56fd\u503a\u671f\u8d27\u5408\u7ea6\u800c\u5f97\u540d\u3002\n<\/p>\n<p>\n \u4e8b\u4ef6\u7684\u8d77\u56e0\u662f\u8d22\u653f\u90e8\u5bf992\u5e74\u53d1\u884c\u7684\u4e09\u5e74\u671f\u56fd\u503a92(\u4e09)\u8fdb\u884c\u8d34\u606f\u7684\u4f20\u8a00\u3002\u5f53\u65f6\uff0c\u5e02\u573a\u4e0a\u7684\u591a\u7a7a\u53cc\u65b9\u5206\u6b67\u4e25\u91cd\uff0c\u4ee5\u4e0b\u6d77\u4e07\u56fd\u8bc1\u5238\u4e3a\u9996\u7684\u673a\u6784\u5728327\u56fd\u503a\u671f\u8d27\u4e0a\u4f5c\u7a7a\uff0c\u800c\u4ee5\u4e2d\u7ecf\u5f00\u4e3a\u9996\u7684\u673a\u6784\u5728\u6b64\u56fd\u503a\u671f\u8d27\u54c1\u79cd\u4e0a\u4f5c\u591a\u3002\n<\/p>\n<p>\n \u4f20\u8a00\u5f97\u5230\u8bc1\u5b9e\u540e\uff0c\u7a7a\u65b9\u9635\u8425\u906d\u53d7\u91cd\u521b\u3002\u4e07\u56fd\u8bc1\u5238\u603b\u7ecf\u7406\u7ba1\u91d1\u751f\u56e0\u5728327\u56fd\u503a\u671f\u8d27\u4e0a\u6301\u4ed3\u91cf\u8d85\u8fc7\u89c4\u5b9a\u800c\u88ab\u5224\u52118\u5e74\u3002\u4e0a\u6d77\u8bc1\u5238\u4ea4\u6613\u6240\u603b\u7ecf\u7406\u5c09\u6587\u6e0a\u4e5f\u56e0\u6d89\u6848\u800c\u88ab\u514d\u804c\u3002\n<\/p>\n<p>\n 327\u56fd\u503a\u671f\u8d27\u98ce\u6ce2\u4e8b\u4ef6\u5bf9\u4e2d\u56fd\u8bc1\u5238\u5e02\u573a\u4ea7\u751f\u4e86\u6df1\u8fdc\u7684\u5f71\u54cd\u3002\u8be5\u4e8b\u4ef6\u66b4\u9732\u4e86\u5f53\u65f6\u8bc1\u5238\u5e02\u573a\u76d1\u7ba1\u7684\u8584\u5f31\uff0c\u4e5f\u4fc3\u8fdb\u4e86\u4e2d\u56fd\u8bc1\u5238\u5e02\u573a\u76d1\u7ba1\u4f53\u7cfb\u7684\u5b8c\u5584\u548c\u52a0\u5f3a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f93\u5165\u4f60\u7684\u51fa\u751f\u65e5\u671f\uff0c\u9633\u5386\uff0c\uff0c\u5373\u53ef\u67e5\u8be2\u4f60\u7684\u661f\u5ea7\uff0c\u51fa\u751f\u65e5\u671f\uff0cconstzodiacSigns=[\uff0cname\uff0c\u767d\u7f8a\u5ea7\uff0cstartDate\uff0c03\uff0c21\uff0cendDate\uff0c04\uff0c19\uff0cname\uff0c\u91d1\u725b\u5ea7\uff0cstartDate\uff0c04\uff0c20\uff0cendDate\uff0c05\uff0c20\uff0cname\uff0c\u53cc\u5b50\u5ea7\uff0cstartDate\uff0c05\uff0c21\uff0cendDate\uff0c06\uff0c20&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":65259,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28463,28462],"class_list":["post-65260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-28463","tag-28462"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/65260","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=65260"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/65260\/revisions"}],"predecessor-version":[{"id":65261,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/65260\/revisions\/65261"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/65259"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=65260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=65260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=65260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}