{"id":46265,"date":"2024-11-03T10:31:32","date_gmt":"2024-11-03T02:31:32","guid":{"rendered":"https:\/\/0592ban.cn\/?p=46265"},"modified":"2024-11-03T10:31:32","modified_gmt":"2024-11-03T02:31:32","slug":"%e8%b6%85%e5%87%86%e6%b5%8b%e8%af%95%e9%a2%98-%e6%b7%b1%e5%85%a5%e6%8e%a2%e6%9f%a5%e4%bd%a0%e8%bf%91%e6%9c%9f%e7%88%b1%e6%83%85%e8%bf%90%e5%8a%bf%e7%9a%84%e7%a7%98%e5%af%86%e5%8f%91%e5%b1%95","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/11\/03\/%e8%b6%85%e5%87%86%e6%b5%8b%e8%af%95%e9%a2%98-%e6%b7%b1%e5%85%a5%e6%8e%a2%e6%9f%a5%e4%bd%a0%e8%bf%91%e6%9c%9f%e7%88%b1%e6%83%85%e8%bf%90%e5%8a%bf%e7%9a%84%e7%a7%98%e5%af%86%e5%8f%91%e5%b1%95\/","title":{"rendered":"\u8d85\u51c6\u6d4b\u8bd5\u9898 \u6df1\u5165\u63a2\u67e5\u4f60\u8fd1\u671f\u7231\u60c5\u8fd0\u52bf\u7684\u79d8\u5bc6\u53d1\u5c55 (\u8d85\u51c6\u6d4b\u8bd5\u9898\u6df1\u5ea6\u5206\u6790)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u6df1\u5165\u63a2\u67e5\u4f60\u8fd1\u671f\u7231\u60c5\u8fd0\u52bf\u7684\u79d8\u5bc6\u53d1\u5c55\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/11\/d7d57a4a-c14e-447f-8755-b1a659d4e3c0.jpg\"\/><\/p>\n<p>\n \u6700\u8fd1\u4f60\u7684\u7231\u60c5\u904b\u52e2\u662f\u5426\u6703\u5448\u73fe\u4e0a\u5347\u7684\u8da8\u52e2\u5462\uff1f\u6e96\u5099\u958b\u59cb\u6e2c\u8a66\u5427\uff01\n<\/p>\n<form>\n<ol>\n<li class=\"test-question\">\n   \u516d\u6b3e\u86cb\u7cd5\u4e2d\uff0c\u8acb\u6311\u9078\u51fa\u4f60\u73fe\u5728\u6700\u60f3\u5403\u7684\u6b3e\u5f0f\uff1a\n  <\/li>\n<ul>\n<li>\n    <input name=\"cake\" type=\"radio\" value=\"a\"\/><br \/>\n    \u7565\u5e36\u751c\u81a9\u7684\u829d\u58eb\u86cb\u7cd5\n   <\/li>\n<li>\n    <input name=\"cake\" type=\"radio\" value=\"b\"\/><br \/>\n    \u82e6\u751c\u76f8\u52a0\u7684\u5de7\u514b\u529b\u86cb\u7cd5\n   <\/li>\n<li>\n    <input name=\"cake\" type=\"radio\" value=\"c\"\/><br \/>\n    \u770b\u8d77\u4f86\u6bd4\u8f03\u8f15\u98df\u7684\u6c34\u679c\u6155\u65af\u86cb\u7cd5\n   <\/li>\n<li>\n    <input name=\"cake\" type=\"radio\" value=\"d\"\/><br \/>\n    \u53ef\u611b\u7684\u99ac\u5361\u9f8d\u9020\u578b\u86cb\u7cd5\n   <\/li>\n<li>\n    <input name=\"cake\" type=\"radio\" value=\"e\"\/><br \/>\n    \u7c21\u7d04\u7684\u9999\u8349\u5976\u6cb9\u86cb\u7cd5\n   <\/li>\n<li>\n    <input name=\"cake\" type=\"radio\" value=\"f\"\/><br \/>\n    \u4e00\u770b\u5c31\u5c11\u5973\u5fc3\u5341\u8db3\u7684\u8349\u8393\u5854\n   <\/li>\n<\/ul>\n<\/ol>\n<p> <input type=\"submit\" value=\"\u6e2c\u8a66\"\/><br \/>\n<\/form>\n<p><script>\n const submitButton = document.querySelector('input[type=\"submit\"]');\n    const resultElement = document.getElementById('result');<\/p>\n<p>    submitButton.addEventListener('click', (e) => {\n      e.preventDefault();<\/p>\n<p>      const cakeChoice = document.querySelector('input[name=\"cake\"]:checked').value;<\/p>\n<p>      switch (cakeChoice) {\n        case 'a':\n          resultElement.innerHTML = `<\/p>\n<h2>\u7565\u5e36\u751c\u81a9\u7684\u829d\u58eb\u86cb\u7cd5<\/h2>\n<p>\u6200\u611b\u985e\u578b\uff1a\u4eab\u53d7\u6a38\u5be6\u5e78\u798f\u7684\u6200\u611b\u985e\u578b<\/p>\n<p>\u611b\u60c5\u904b\u52e2\u5206\u6578\uff1a80<\/p>\n<p>\u6200\u611b\u904b\u52e2\u5206\u6790\uff1a\u5c0d\u65bc\u611b\u60c5\uff0c\u4f60\u4e0d\u6703\u8868\u73fe\u5f97\u7279\u5225\u71b1\u60c5\uff0c\u4f46\u5167\u5fc3\u5f88\u611f\u52d5\u65bc\u90a3\u4e9b\u5c0f\u5c0f\u7684\u5e78\u798f\u3002\u53ea\u60f3\u8b93\u9019\u6bb5\u611f\u60c5\u7d30\u6c34\u9577\u6d41\u3002<\/p>\n<p>          `;\n          break;\n        case 'b':\n          resultElement.innerHTML = `<\/p>\n<h2>\u82e6\u751c\u76f8\u52a0\u7684\u5de7\u514b\u529b\u86cb\u7cd5<\/h2>\n<p>\u6200\u611b\u985e\u578b\uff1a\u8ffd\u6c42\u8f5f\u8f5f\u70c8\u70c8\u7684\u6200\u611b\u985e\u578b<\/p>\n<p>\u611b\u60c5\u904b\u52e2\u5206\u6578\uff1a85<\/p>\n<p>\u6200\u611b\u904b\u52e2\u5206\u6790\uff1a\u611b\u60c5\u4f86\u81e8\u6642\uff0c\u4f60\u6700\u76f4\u63a5\u7684\u8868\u73fe\u5c31\u662f\u6eff\u61f7\u6fc0\u60c5\u3001\u6e34\u671b\u8f70\u8f70\u70c8\u70c8\u5730\u611b\u4e00\u5834\u3002\u5373\u4fbf\u5982\u98db\u86fe\u64b2\u706b\uff0c\u81f3\u5c11\u70ba\u611b\u52c7\u6562\u904e\u3001\u7d62\u9e97\u904e\uff0c\u4e5f\u8db3\u5920\u4e86\uff01\u4f60\u6e34\u671b\u5728\u5e73\u6de1\u7684\u611b\u60c5\u751f\u6d3b\u4e2d\u4e5f\u80fd\u611f\u53d7\u5230\u9a5a\u559c\u3002<\/p>\n<p>          `;\n          break;\n        case 'c':\n          resultElement.innerHTML = `<\/p>\n<h2>\u770b\u8d77\u4f86\u6bd4\u8f03\u8f15\u98df\u7684\u6c34\u679c\u6155\u65af\u86cb\u7cd5<\/h2>\n<p>\u6200\u611b\u985e\u578b\uff1a\u6c89\u6d78\u5728\u6eab\u99a8\u6c1b\u570d\u4e2d\u7684\u6200\u611b\u985e\u578b<\/p>\n<p>\u611b\u60c5\u904b\u52e2\u5206\u6578\uff1a75<\/p>\n<p>\u6200\u611b\u904b\u52e2\u5206\u6790\uff1a\u4f60\u7684\u611b\u60c5\u904b\u52e2\u4e0d\u75af\u72c2\u4e5f\u4e0d\u5e73\u6de1\uff01\u611b\u60c5\u4f86\u81e8\u6642\uff0c\u4f60\u6700\u4eab\u53d7\u7684\u662f\u90a3\u4efd\u5169\u500b\u4eba\u7684\u6eab\u6696\uff5e\u54ea\u6015\u53ea\u662f\u7aa9\u5728\u5bb6\u88e1\u770b\u96fb\u5f71\u3001\u505a\u5bb6\u52d9\uff0c\u90fd\u89ba\u5f97\u5f88\u5e78\u798f\u3002<\/p>\n<p>          `;\n          break;\n        case 'd':\n          resultElement.innerHTML = `<\/p>\n<h2>\u53ef\u611b\u7684\u99ac\u5361\u9f8d\u9020\u578b\u86cb\u7cd5<\/h2>\n<p>\u6200\u611b\u985e\u578b\uff1a\u4eab\u53d7\u751c\u871c\u5feb\u6a02\u7684\u6200\u611b\u985e\u578b<\/p>\n<p>\u611b\u60c5\u904b\u52e2\u5206\u6578\uff1a\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4f60\u7684\u7231\u60c5\u904b\u52e2\u662f\u5426\u6703\u5448\u73fe\u4e0a\u5347\u7684\u8da8\u52e2\u5462\uff0c\u6e96\u5099\u958b\u59cb\u6e2c\u8a66\u5427\uff01\u516d\u6b3e\u86cb\u7cd5\u4e2d\uff0c\u8acb\u6311\u9078\u51fa\u4f60\u73fe\u5728\u6700\u60f3\u5403\u7684\u6b3e\u5f0f\uff0c\u7565\u5e36\u751c\u81a9\u7684\u829d\u58eb\u86cb\u7cd5\u82e6\u751c\u76f8\u52a0\u7684\u5de7\u514b\u529b\u86cb\u7cd5\u770b\u8d77\u4f86\u6bd4\u8f03\u8f15\u98df\u7684\u6c34\u679c\u6155\u65af\u86cb\u7cd5\u53ef\u611b\u7684\u99ac\u5361\u9f8d\u9020\u578b\u86cb\u7cd5\u7c21\u7d04\u7684\u9999\u8349\u5976\u6cb9\u86cb\u7cd5\u4e00\u770b\u5c31\u5c11\u5973\u5fc3\u5341\u8db3\u7684\u8349\u8393\u5854constsubmitButton=document.querySelector\uff0cinput[type=subm&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":46264,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[19212,19211],"class_list":["post-46265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-19212","tag-19211"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/46265","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=46265"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/46265\/revisions"}],"predecessor-version":[{"id":46266,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/46265\/revisions\/46266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/46264"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=46265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=46265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=46265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}