{"id":129235,"date":"2025-08-24T21:10:38","date_gmt":"2025-08-24T13:10:38","guid":{"rendered":"https:\/\/0592ban.cn\/?p=129235"},"modified":"2025-08-24T21:10:38","modified_gmt":"2025-08-24T13:10:38","slug":"%e6%82%a8%e7%9a%84%e7%94%9f%e8%82%96%e4%bb%8a%e6%97%a5%e8%bf%90%e5%8a%bf%e5%a6%82%e4%bd%95%ef%bc%9f%e7%82%b9%e5%87%bb%e6%9f%a5%e8%af%a2%ef%bc%8c%e4%ba%86%e8%a7%a3%e5%8d%81%e4%ba%8c%e7%94%9f%e8%82%96","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2025\/08\/24\/%e6%82%a8%e7%9a%84%e7%94%9f%e8%82%96%e4%bb%8a%e6%97%a5%e8%bf%90%e5%8a%bf%e5%a6%82%e4%bd%95%ef%bc%9f%e7%82%b9%e5%87%bb%e6%9f%a5%e8%af%a2%ef%bc%8c%e4%ba%86%e8%a7%a3%e5%8d%81%e4%ba%8c%e7%94%9f%e8%82%96\/","title":{"rendered":"\u60a8\u7684\u751f\u8096\u4eca\u65e5\u8fd0\u52bf\u5982\u4f55\uff1f\u70b9\u51fb\u67e5\u8be2\uff0c\u4e86\u89e3\u5341\u4e8c\u751f\u8096\u6bcf\u65e5\u8fd0\u52bf\uff0c\u628a\u63e1\u597d\u8fd0\uff01 (\u60a8\u7684\u751f\u65e5\u662f\u4ec0\u4e48\u65f6\u5019\u7684\u82f1\u6587)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u751f\u8096\" src=\"https:\/\/0592ban.cn\/tu\/87.jpg\"\/><\/p>\n<div class=\"container\">\n<p>\n  \u70b9\u51fb\u67e5\u8be2\uff0c\u4e86\u89e3\u5341\u4e8c\u751f\u8096\u6bcf\u65e5\u8fd0\u52bf\uff0c\u628a\u63e1\u597d\u8fd0\uff01\n <\/p>\n<p>\n  \uff08\u60a8\u7684\u751f\u65e5\u662f\u4ec0\u4e48\u65f6\u5019\u7684\u82f1\u6587\uff1f\uff09\n <\/p>\n<div class=\"section\">\n<form id=\"queryForm\">\n   <label for=\"birthdate\"><br \/>\n    \u8bf7\u8f93\u5165\u60a8\u7684\u751f\u65e5\uff1a<br \/>\n   <\/label><br \/>\n   <input id=\"birthdate\" name=\"birthdate\" required=\"\" type=\"date\"\/><br \/>\n   <button type=\"submit\"><br \/>\n    \u67e5\u8be2<br \/>\n   <\/button><br \/>\n  <\/form>\n<\/p><\/div>\n<p> <script>\n  const form = document.getElementById('queryForm');form.addEventListener('submit', function(event) {event.preventDefault(); \/\/\u963b\u6b62\u9875\u9762\u8df3\u8f6cconst birthdate = document.getElementById('birthdate').value;const resultDiv = document.getElementById('result');resultDiv.innerHTML = ''; \/\/\u6e05\u7a7a\u4e4b\u524d\u7684\u7ed3\u679cconst zodiacSigns = [\"\u9f20\",\"\u725b\",\"\u864e\",\"\u5154\",\"\u9f99\",\"\u86c7\",\"\u9a6c\",\"\u7f8a\",\"\u7334\",\"\u9e21\",\"\u72d7\",\"\u732a\"];\/\/ \u968f\u673a\u751f\u6210\u8fd0\u52bf\u63cf\u8ff0\uff0c\u5b9e\u9645\u5e94\u7528\u4e2d\u9700\u4ece\u6570\u636e\u5e93\u6216API\u83b7\u53d6const descriptions = [\n\"\u4eca\u5929\u4f60\u5145\u6ee1\u6d3b\u529b\uff0c\u9002\u5408\u5c1d\u8bd5\u65b0\u4e8b\u7269\u3002\",\"\u4eca\u5929\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5c0f\u6311\u6218\uff0c\u4f46\u8bf7\u4fdd\u6301\u51b7\u9759\u3002\",\"\u4eca\u5929\u4f60\u7684\u8fd0\u6c14\u4e0d\u9519\uff0c\u9002\u5408\u4e0e\u670b\u53cb\u5bb6\u4eba\u76f8\u5904\u3002\",\"\u4eca\u5929\u4f60\u7684\u6c9f\u901a\u80fd\u529b\u5f97\u5230\u63d0\u5347\uff0c\u9002\u5408\u4e0e\u4eba\u4ea4\u6d41\u3002\",\"\u4eca\u5929\u4f60\u53ef\u80fd\u9700\u8981\u591a\u52a0\u6ce8\u610f\u7ec6\u8282\uff0c\u907f\u514d\u51fa\u9519\u3002\",\"\u4eca\u5929\u4f60\u7684\u8d22\u8fd0\u4e0d\u9519\uff0c\u9002\u5408\u6295\u8d44\u7406\u8d22\u3002\",\"\u4eca\u5929\u4f60\u53ef\u80fd\u4f1a\u611f\u5230\u538b\u529b\u8f83\u5927\uff0c\u9700\u8981\u653e\u677e\u5fc3\u60c5\u3002\",\"\u4eca\u5929\u4f60\u5145\u6ee1\u667a\u6167\uff0c\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u95ee\u9898\u3002\",\"\u4eca\u5929\u4f60\u7684\u5065\u5eb7\u72b6\u51b5\u826f\u597d\uff0c\u9002\u5408\u8fdb\u884c\u4f53\u80b2\u953b\u70bc\u3002\",\"\u4eca\u5929\u4f60\u7684\u8fd0\u6c14\u4e00\u822c\uff0c\u6ce8\u610f\u5b89\u5168\u3002\",];\/\/ \u5728\u8fd9\u91cc\u6839\u636e\u751f\u65e5\u8ba1\u7b97\u751f\u8096\uff0c\u5b9e\u9645\u5e94\u7528\u8981\u66f4\u52a0\u4e25\u8c28\uff01let zodiacIndex = 0; \/\/  \u8fd9\u91cc\u7b80\u5316\uff0c\u5b9e\u9645\u5e94\u7528\u8981\u51c6\u786e\u8ba1\u7b97const today= new Date();const currentYear = today.getFullYear();const birthDate = new Date(birthDate);    let result = \"\";result += `<\/p>\n<div class=\"section\">`;result += `<\/p>\n<div class=\"date\">\u4eca\u5929\u662f ${today.toDateString()}<\/div>\n<p>`;result += `<\/p>\n<div class=\"animal\">\u4f60\u7684\u751f\u8096\u662f ${zodiacSigns[zodiacIndex]} <\/div>\n<p>`;result += `<\/p>\n<div class=\"description\">${descriptions[Math.floor(Math.random()  descriptions.length)]} <\/div>\n<p>`; result += `<\/p><\/div>\n<p>`;resultDiv.innerHTML = result;});\n <\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u70b9\u51fb\u67e5\u8be2\uff0c\u4e86\u89e3\u5341\u4e8c\u751f\u8096\u6bcf\u65e5\u8fd0\u52bf\uff0c\u628a\u63e1\u597d\u8fd0\uff01\uff0c\u60a8\u7684\u751f\u65e5\u662f\u4ec0\u4e48\u65f6\u5019\u7684\u82f1\u6587\uff0c\u8bf7\u8f93\u5165\u60a8\u7684\u751f\u65e5\uff0c\u67e5\u8be2constform=document.getElementById\uff0cqueryForm\uff0cform.addEventListener\uff0csubmit\uff0cfunction\uff0cevent\uff0cevent.preventDefault\uff0c\u963b\u6b62\u9875\u9762\u8df3\u8f6cc&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[51471,51468,51470,51469,51467],"class_list":["post-129235","post","type-post","status-publish","format-standard","hentry","category-12shengxiao","tag-51471","tag-51468","tag-51470","tag-51469","tag-51467"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/129235","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=129235"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/129235\/revisions"}],"predecessor-version":[{"id":129236,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/129235\/revisions\/129236"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=129235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=129235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=129235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}