{"id":7065,"date":"2024-06-02T02:16:28","date_gmt":"2024-06-01T18:16:28","guid":{"rendered":"https:\/\/0592ban.cn\/?p=7065"},"modified":"2024-06-02T02:16:28","modified_gmt":"2024-06-01T18:16:28","slug":"1990%e5%b9%b4%e9%98%b3%e5%8e%867%e6%9c%8820%e6%97%a5%e6%ad%a3%e5%8d%8812%ef%bc%9b00%e5%87%ba%e7%94%9f%e7%9a%84%e5%b7%a8%e8%9f%b9%e5%ba%a7-%e5%a5%b9%e7%9a%84%e4%b8%8a%e5%8d%87%e6%98%9f%e5%ba%a7","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/06\/02\/1990%e5%b9%b4%e9%98%b3%e5%8e%867%e6%9c%8820%e6%97%a5%e6%ad%a3%e5%8d%8812%ef%bc%9b00%e5%87%ba%e7%94%9f%e7%9a%84%e5%b7%a8%e8%9f%b9%e5%ba%a7-%e5%a5%b9%e7%9a%84%e4%b8%8a%e5%8d%87%e6%98%9f%e5%ba%a7\/","title":{"rendered":"1990\u5e74\u9633\u53867\u670820\u65e5\u6b63\u534812\uff1b00\u51fa\u751f\u7684\u5de8\u87f9\u5ea7 \u5979\u7684\u4e0a\u5347\u661f\u5ea7\u662f\u4ec0\u4e48 (1990\u5e74\u9633\u5386)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"1990\u5e74\u9633\u5386\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/06\/73b4b8aa-6231-42cb-bd24-114ab7f64190.jpg\"\/><\/p>\n<p>\n \u4e0a\u5347\u661f\u5ea7\u53c8\u79f0\u547d\u5bab\uff0c\u662f\u51fa\u751f\u65f6\u4e1c\u65b9\u5730\u5e73\u7ebf\u6240\u5728\u7684\u661f\u5ea7\u3002\u5b83\u4ee3\u8868\u7740\u4e2a\u4eba\u7684\u5916\u5728\u5f62\u8c61\u3001\u884c\u4e3a\u6a21\u5f0f\u548c\u751f\u6d3b\u6001\u5ea6\u3002\n<\/p>\n<h2>\n \u67e5\u8be2\u4e0a\u5347\u661f\u5ea7<br \/>\n<\/h2>\n<form action=\"\">\n <label for=\"birthday\"><br \/>\n  \u751f\u65e5\uff1a<br \/>\n <\/label><br \/>\n <input id=\"birthday\" placeholder=\"\u8bf7\u8f93\u5165\u51fa\u751f\u65e5\u671f\uff0c\u683c\u5f0f\u4e3a\uff1ayyyy-mm-dd hh:mm\" type=\"text\"\/><br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<h2>\n \u4e0a\u5347\u661f\u5ea7\u67e5\u8be2\u7ed3\u679c<br \/>\n<\/h2>\n<p><script>\n const result = document.getElementById('result');<\/p>\n<p>    document.querySelector('form').addEventListener('submit', (e) => {\n      e.preventDefault();<\/p>\n<p>      const birthday = document.getElementById('birthday').value;<\/p>\n<p>      if (!birthday) {\nalert('\u8bf7\u8f93\u5165\u51fa\u751f\u65e5\u671f');\n        return;\n      }<\/p>\n<p>      \/\/ \u5904\u7406\u751f\u65e5\u683c\u5f0f\n      const [date, time] = birthday.split(' ');\n      const [year, month, day] = date.split('-');\n      const [hour, minute] = time.split(':');\n      const birthDate = new Date(year, month - 1, day, hour, minute);<\/p>\n<p>      \/\/ \u8ba1\u7b97\u4e0a\u5347\u661f\u5ea7\n      const siderealTime = calculateSiderealTime(birthDate);\n      const ascendingDegree = calculateAscendingDegree(siderealTime);\n      const ascendingSign = calculateAscendingSign(ascendingDegree);<\/p>\n<p>      \/\/ \u663e\u793a\u7ed3\u679c\n      result.innerHTML = `<\/p>\n<h4>\u4e0a\u5347\u661f\u5ea7\uff1a${ascendingSign}<\/h4>\n<p>\u57fa\u672c\u7279\u8d28\uff1a<\/p>\n<ul>\n          ${getBasicTraits(ascendingSign)}\n        <\/ul>\n<p>\u5177\u4f53\u7279\u8d28\uff1a<\/p>\n<ul>\n          ${getSpecificTraits(ascendingSign)}\n        <\/ul>\n<p>\u884c\u4e8b\u98ce\u683c\uff1a<\/p>\n<ul>\n          ${getActionStyles(ascendingSign)}\n        <\/ul>\n<p>\u4e2a\u6027\u76f2\u70b9\uff1a<\/p>\n<ul>\n          ${getPersonalityBlindSpots(ascendingSign)}\n        <\/ul>\n<p>      `;\n    });<\/p>\n<p>    \/\/ \u8ba1\u7b97\u6052\u661f\u65f6\n    const calculateSiderealTime = (birthDate) => {\n      \/\/ \u83b7\u53d6\u683c\u6797\u5a01\u6cbb\u65f6\u95f4\uff08GMT\uff09\n      const gmt = birthDate.getTime() \/ 1000;<\/p>\n<p>      \/\/ \u8ba1\u7b97\u6052\u661f\u65f6\uff08\u4ee5\u5c0f\u65f6\u4e3a\u5355\u4f4d\uff09\n      return (gmt \/ 3600)  1.002737909;\n    };<\/p>\n<p>    \/\/ \u8ba1\u7b97\u4e0a\u5347\u5ea6\u6570\n    const calculateAscendingDegree = (siderealTime) => {\n      \/\/ \u8ba1\u7b97\u4e0a\u5347\u5ea6\u6570\uff08\u4ee5\u5ea6\u4e3a\u5355\u4f4d\uff09\n      return siderealTime  15;\n    };<\/p>\n<p>    \/\/ \u8ba1\u7b97\u4e0a\u5347\u661f\u5ea7\n    const calculateAscendingSign = (ascendingDegree) => {\n      \/\/ 12\u661f\u5ea7\u7684\u8d77\u59cb\u5ea6\u6570\n      const signs = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330];<\/p>\n<p>      \/\/ \u627e\u5230\u4e0a\u5347\u661f\u5ea7\u6240\u5728\u7684\u533a\u95f4\n      for (let i = 0; i < signs.length; i++) {\n        if (ascendingDegree >= signs[i] && ascendingDegree < signs[i + 1]) {\n          return ['\u767d\u7f8a\u5ea7', '\u91d1\u725b\u5ea7', '\u53cc\u5b50\u5ea7', '\u5de8\u87f9\u5ea7', '\u72ee\u5b50\u5ea7', '\u5904\u5973\u5ea7', '\u5929\u79e4\u5ea7', '\u5929\u874e\u5ea7', '\u5c04\u624b\u5ea7', '\u6469\u7faf\u5ea7', '\u6c34\u74f6\u5ea7', '\u53cc\u9c7c\u5ea7'][i];\n        }\n      }\n    };\n\n    \/\/ \u83b7\u53d6\u4e0a\u5347\u661f\u5ea7\u7684\u57fa\u672c\u7279\u8d28\n    const getBasicTraits = (ascendingSign) => {\n      switch (ascendingSign) {\n        case '\u767d\u7f8a\u5ea7':\n          return '<\/p>\n<li>\u72ec\u7acb\u3001\u52c7\u6562\u3001\u81ea\u4fe1<\/li>\n<li>\u51b2\u52a8\u3001\u9c81\u83bd\u3001\u6025\u8e81<\/li>\n<p>';\n        case '\u91d1\u725b\u5ea7':\n          return '<\/p>\n<li>\u7a33\u5b9a\u3001\u53ef\u9760\u3001\u52e4\u594b<\/li>\n<li>\u56fa\u6267\u3001\u8d2a\u5a6a\u3001\u7269\u8d28\u4e3b\u4e49<\/li>\n<p>';\n        case '\u53cc\u5b50\u5ea7':\n          return '<\/p>\n<li>\u806a\u660e\u3001\u673a\u667a\u3001\u5584\u4e8e\u6c9f\u901a<\/li>\n<li>\u80a4\u6d45\u3001\u591a\u53d8\u3001\u516b\u5366<\/li>\n<p>';\n        case '\u5de8\u87f9\u5ea7':\n          return '<\/p>\n<li>\u654f\u611f\u3001\u4f53\u8d34\u3001\u5bcc\u6709\u540c\u60c5\u5fc3<\/li>\n<li>\u60c5\u7eea\u5316\u3001\u4f9d\u8d56\u6027\u5f3a\u3001\u591a\u7591<\/li>\n<p>';\n        case '\u72ee\u5b50\u5ea7':\n          return '<\/p>\n<li>\u81ea\u4fe1\u3001\u6177\u6168\u3001\u9886\u5bfc\u80fd\u529b\u5f3a<\/li>\n<li>\u50b2\u6162\u3001\u865a\u8363\u3001\u63a7\u5236\u6b32\u5f3a<\/li>\n<p>';\n        case '\u5904\u5973\u5ea7':\n          return '<\/p>\n<li>\u52a1\u5b9e\u3001\u52e4\u594b\u3001\u8ffd\u6c42\u5b8c\u7f8e<\/li>\n<li>\u6311\u5254\u3001\u6d01\u7656\u3001\u795e\u7ecf\u8d28<\/li>\n<p>';\n        case '\u5929\u79e4\u5ea7':\n          return '<\/p>\n<li>\u4f18\u96c5\u3001\u548c\u8c10\u3001\u5584\u4e8e\u4ea4\u9645<\/li>\n<li>\u4f18\u67d4\u5be1\u65ad\u3001\u7f3a\u4e4f\u4e3b\u89c1\u3001\u81ea\u79c1<\/li>\n<p>';\n        case '\u5929\u874e\u5ea7':\n          return '<\/p>\n<li>\u795e\u79d8\u3001\u6027\u611f\u3001\u6709\u6d1e\u5bdf\u529b<\/li>\n<li>\u5360\u6709\u6b32\u5f3a\u3001\u8bb0\u4ec7\u3001\u62a5\u590d\u5fc3\u91cd<\/li>\n<p>';\n        case '\u5c04\u624b\u5ea7':\n          return '<\/p>\n<li>\u4e50\u89c2\u3001\u81ea\u7531\u3001\u7231\u597d\u65c5\u884c<\/li>\n<li>\u7c97\u5fc3\u5927\u610f\u3001\u7f3a\u4e4f\u8d23\u4efb\u611f\u3001\u6d6e\u8e81<\/li>\n<p>';\n        case '\u6469\u7faf\u5ea7':\n          return '<\/p>\n<li>\u52e4\u594b\u3001\u4e0a\u8fdb\u3001\u91ce\u5fc3\u52c3\u52c3<\/li>\n<li>\u51b7\u6f20\u3001\u73b0\u5b9e\u3001\u8fc7\u4e8e\u4e25\u5389<\/li>\n<p>';\n        case '\u6c34\u74f6\u5ea7':\n          return '<\/p>\n<li>\u72ec\u7acb\u3001\u521b\u65b0\u3001\u535a\u7231<\/li>\n<li>\u53e4\u602a\u3001\u81ea\u4ee5\u4e3a\u662f\u3001\u53cd\u4f20\u7edf<\/li>\n<p>';\n        case '\u53cc\u9c7c\u5ea7':\n          return '<\/p>\n<li>\u654f\u611f\u3001\u5bcc\u6709\u60f3\u8c61\u529b\u3001\u5bcc\u6709\u540c\u60c5\u5fc3<\/li>\n<li>\u9003\u907f\u73b0\u5b9e\u3001\u4f18\u67d4\u5be1\u65ad\u3001\u81ea\u6b3a\u6b3a\u4eba<\/li>\n<p>';\n      }\n    };<\/p>\n<p>    \/\/ \u83b7\u53d6\u4e0a\u5347\u661f\u5ea7\u7684\u5177\u4f53\u7279\u8d28\n    const getSpecificTraits = (ascendingSign) => {\n      switch (ascendingSign) {\n        case '\u767d\u7f8a\u5ea7':\n          return '<\/p>\n<li>\u559c\u6b22\u5192\u9669\u548c\u6311\u6218<\/li>\n<li>\u6562\u4e8e\u8868\u8fbe\u81ea\u5df1\u7684\u89c2\u70b9<\/li>\n<li>\u5bb9\u6613\u51b2\u52a8\u884c\u4e8b<\/li>\n<p>';\n        case '\u91d1\u725b\u5ea7':\n          return '<\/p>\n<li>\u91cd\u89c6\u91d1\u94b1\u548c\u7269\u8d28\u4eab\u53d7<\/li>\n<li>\u559c\u6b22\u7a33\u5b9a\u548c\u8212\u9002\u7684\u751f\u6d3b<\/li>\n<li>\u56fa\u6267\u5df1\u89c1\uff0c\u96be\u4ee5\u6539\u53d8<\/li>\n<p>';\n        case '\u53cc\u5b50\u5ea7':\n          return '<\/p>\n<li>\u64c5\u957f\u5b66\u4e60\u548c\u6c9f\u901a<\/li>\n<li>\u601d\u7ef4\u654f\u6377\uff0cli>\u5bb9\u6613\u51b2\u52a8\u884c\u4e8b<\/li>\n<p>';\n        case '\u91d1\u725b\u5ea7':\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u5347\u661f\u5ea7\u53c8\u79f0\u547d\u5bab\uff0c\u662f\u51fa\u751f\u65f6\u4e1c\u65b9\u5730\u5e73\u7ebf\u6240\u5728\u7684\u661f\u5ea7\uff0c\u5b83\u4ee3\u8868\u7740\u4e2a\u4eba\u7684\u5916\u5728\u5f62\u8c61\u3001\u884c\u4e3a\u6a21\u5f0f\u548c\u751f\u6d3b\u6001\u5ea6\uff0c\u67e5\u8be2\u4e0a\u5347\u661f\u5ea7\u751f\u65e5\uff0c\u4e0a\u5347\u661f\u5ea7\u67e5\u8be2\u7ed3\u679cconstresult=document.getElementById\uff0cresult\uff0cdocument.querySelector\uff0cform\uff0c.addEventListener\uff0csubmit\uff0ce\uff0c=\uff0ce&#8230;.\u3002<\/p>\n","protected":false},"author":1,"featured_media":7064,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3513,3512],"class_list":["post-7065","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-3513","tag-3512"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/7065","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=7065"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/7065\/revisions"}],"predecessor-version":[{"id":7066,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/7065\/revisions\/7066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/7064"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=7065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=7065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=7065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}