{"id":48759,"date":"2024-11-10T05:10:17","date_gmt":"2024-11-09T21:10:17","guid":{"rendered":"https:\/\/0592ban.cn\/?p=48759"},"modified":"2024-11-10T05:10:17","modified_gmt":"2024-11-09T21:10:17","slug":"%e6%8f%ad%e7%a7%98%e4%bd%a0%e7%9a%84%e6%a1%83%e8%8a%b1%e6%8c%87%e6%95%b0-%e4%ba%86%e8%a7%a3%e4%bd%a0%e7%9a%84%e6%a1%83%e8%8a%b1%e8%bf%90%e5%8a%bf%ef%bc%81-%e6%a1%83%e8%8a%b1%e8%bf%90%e5%8a%bf%e6%b5%8b","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/11\/10\/%e6%8f%ad%e7%a7%98%e4%bd%a0%e7%9a%84%e6%a1%83%e8%8a%b1%e6%8c%87%e6%95%b0-%e4%ba%86%e8%a7%a3%e4%bd%a0%e7%9a%84%e6%a1%83%e8%8a%b1%e8%bf%90%e5%8a%bf%ef%bc%81-%e6%a1%83%e8%8a%b1%e8%bf%90%e5%8a%bf%e6%b5%8b\/","title":{"rendered":"\u63ed\u79d8\u4f60\u7684\u6843\u82b1\u6307\u6570 \u4e86\u89e3\u4f60\u7684\u6843\u82b1\u8fd0\u52bf\uff01 \u6843\u82b1\u8fd0\u52bf\u6d4b\u8bd5 (\u63ed\u79d8\u4f60\u7684\u6843\u82b1\u662f\u4ec0\u4e48\u6b4c)"},"content":{"rendered":"<div class=\"container\">\n<div class=\"test\">\n<div class=\"title\">\n   \u6843\u82b1\u8fd0\u52bf\u6d4b\u8bd5\n  <\/div>\n<div class=\"options\">\n<div class=\"option\" id=\"option1\">\n    <img decoding=\"async\" alt=\"\" src=\"option1.jpg\"\/>\n   <\/div>\n<div class=\"option\" id=\"option2\">\n    <img decoding=\"async\" alt=\"\" src=\"option2.jpg\"\/>\n   <\/div>\n<div class=\"option\" id=\"option3\">\n    <img decoding=\"async\" alt=\"\" src=\"option3.jpg\"\/>\n   <\/div>\n<div class=\"option\" id=\"option4\">\n    <img decoding=\"async\" alt=\"\" src=\"option4.jpg\"\/>\n   <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"result\" id=\"result\">\n  <button class=\"button\" id=\"reset-button\"><br \/>\n   \u91cd\u65b0\u9009\u62e9<br \/>\n  <\/button>\n <\/div>\n<\/div>\n<p><script>\n const options = document.querySelectorAll('.option');\n    const result = document.getElementById('result');\n    const resultTitle = document.querySelector('.result-title');\n    const resultDescription = document.querySelector('.result-description');\n    const resetButton = document.getElementById('reset-button');<\/p>\n<p>    options.forEach(option => {\n      option.addEventListener('click', () => {\n        result.style.display = 'block';<\/p>\n<p>        const selectedOption = option.id;<\/p>\n<p>        switch (selectedOption) {\n          case 'option1':\n            resultTitle.textContent = '\u4f60\u662f\u771f\u7231\u6218\u58eb';\n            resultDescription.textContent = '\u4f60\u5bf9\u7231\u60c5\u5145\u6ee1\u70ed\u60c5\u548c\u6267\u7740\uff0c\u603b\u80fd\u5168\u529b\u4ee5\u8d74\u5730\u6295\u5165\u4e00\u6bb5\u611f\u60c5\u3002\u4f46\u8981\u5c0f\u5fc3\u4e0d\u8981\u8ff7\u5931\u81ea\u5df1\uff0c\u8981\u4fdd\u6301\u7406\u6027\uff0c\u624d\u80fd\u83b7\u5f97\u771f\u6b63\u7684\u5e78\u798f\u3002';\n            break;\n          case 'option2':\n            resultTitle.textContent = '\u4f60\u662f\u7231\u60c5\u987e\u95ee';\n            resultDescription.textContent = '\u4f60\u5bf9\u7231\u60c5\u6709\u7740\u72ec\u5230\u7684\u89c1\u89e3\uff0c\u603b\u80fd\u4e3a\u4ed6\u4eba\u63d0\u4f9b\u6709\u4ef7\u503c\u7684\u5efa\u8bae\u3002\u4f46\u8981\u5c0f\u5fc3\u4e0d\u8981\u8fc7\u4e8e\u70ed\u8877\u4e8e\u4ed6\u4eba\u7684\u611f\u60c5\u751f\u6d3b\uff0c\u800c\u5ffd\u7565\u4e86\u81ea\u5df1\u7684\u5e78\u798f\u3002';\n            break;\n          case 'option3':\n            resultTitle.textContent = '\u4f60\u662f\u7231\u60c5\u5927\u5e08';\n            resultDescription.textContent = '\u4f60\u5bf9\u7231\u60c5\u6709\u7740\u6df1\u523b\u7684\u7406\u89e3\uff0c\u603b\u80fd\u9a7e\u9a6d\u7231\u60c5\u7684\u6ce2\u6f9c\u8d77\u4f0f\u3002\u4f46\u8981\u5c0f\u5fc3\u4e0d\u8981\u8fc7\u4e8e\u7406\u6027\uff0c\u800c\u9519\u5931\u4e86\u771f\u6b63\u7684\u7f18\u5206\u3002';\n            break;\n          case 'option4':\n            resultTitle.textContent = '\u4f60\u662f\u7231\u60c5\u5929\u4f7f';\n            resultDescription.textContent = '\u4f60\u5bf9\u7231\u60c5\u6709\u7740\u7eaf\u6d01\u7684\u5411\u5f80\uff0c\u603b\u80fd\u5e26\u7ed9\u8eab\u8fb9\u7684\u4eba\u6e29\u6696\u548c\u5e0c\u671b\u3002\u4f46\u8981\u5c0f\u5fc3\u4e0d\u8981\u8fc7\u4e8e\u7406\u60f3\u5316\uff0c\u800c\u5ffd\u7565\u4e86\u73b0\u5b9e\u4e16\u754c\u7684\u6b8b\u9177\u3002';\n            break;\n        }\n      });\n    });<\/p>\n<p>    resetButton.addEventListener('click', () => {\n      window.location.reload();\n    });\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6843\u82b1\u8fd0\u52bf\u6d4b\u8bd5\u91cd\u65b0\u9009\u62e9constoptions=document.querySelectorAll\uff0c.option\uff0cconstresult=document.getElementById\uff0cresult\uff0cconstresultTitle=document.querySelector\uff0c.result\uff0ctitle\uff0cconstresult&#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":[20512,20510,20511],"class_list":["post-48759","post","type-post","status-publish","format-standard","hentry","category-12shengxiao","tag-20512","tag-20510","tag-20511"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/48759","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=48759"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/48759\/revisions"}],"predecessor-version":[{"id":48760,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/48759\/revisions\/48760"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=48759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=48759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=48759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}