{"id":615,"date":"2026-04-02T13:50:58","date_gmt":"2026-04-02T05:50:58","guid":{"rendered":"http:\/\/47.100.88.125\/?page_id=615"},"modified":"2026-04-08T13:51:47","modified_gmt":"2026-04-08T05:51:47","slug":"%e4%bb%a3%e7%a0%81%e4%b8%80%e9%94%ae%e5%8e%bb%e6%b3%a8%e9%87%8a","status":"publish","type":"page","link":"https:\/\/www.05621997.xyz\/index.php\/tools\/%e4%bb%a3%e7%a0%81%e4%b8%80%e9%94%ae%e5%8e%bb%e6%b3%a8%e9%87%8a\/","title":{"rendered":"\u4ee3\u7801\u4e00\u952e\u53bb\u6ce8\u91ca"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"615\" class=\"elementor elementor-615\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b0b75ec e-con-full e-flex e-con e-parent\" data-id=\"b0b75ec\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fffbd02 elementor-widget elementor-widget-heading\" data-id=\"fffbd02\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u4ee3\u7801\u4e00\u952e\u53bb\u6ce8\u91ca<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-fbecacf e-con-full e-flex e-con e-parent\" data-id=\"fbecacf\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0bc507b elementor-widget elementor-widget-html\" data-id=\"0bc507b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\r\n.zcc_comment_clean_container {\r\n    width: 100%;\r\n    box-sizing: border-box;\r\n    margin: 0;\r\n    padding: 15px 0;\r\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\r\n}\r\n.zcc_comment_clean_textarea_wrap {\r\n    margin-bottom: 12px;\r\n    width: 100%;\r\n}\r\n.zcc_comment_clean_textarea {\r\n    width: 100%;\r\n    min-height: 180px;\r\n    padding: 12px 15px;\r\n    border: 1px solid #e2e8f0;\r\n    border-radius: 6px;\r\n    font-family: \"Consolas\", \"Monaco\", monospace;\r\n    font-size: 14px;\r\n    line-height: 1.5;\r\n    resize: vertical;\r\n    outline: none;\r\n    background: #ffffff;\r\n    color: #1e293b;\r\n    box-sizing: border-box;\r\n}\r\n.zcc_comment_clean_textarea:focus {\r\n    border-color: #3b82f0;\r\n    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);\r\n}\r\n.zcc_comment_clean_btn_wrap {\r\n    display: flex;\r\n    gap: 10px;\r\n    margin-bottom: 12px;\r\n    flex-wrap: wrap;\r\n}\r\n.zcc_comment_clean_btn {\r\n    padding: 10px 20px;\r\n    border: none;\r\n    border-radius: 6px;\r\n    font-size: 14px;\r\n    font-weight: 500;\r\n    cursor: pointer;\r\n    transition: all 0.2s ease;\r\n    background: #2563eb;\r\n    color: #ffffff;\r\n}\r\n.zcc_comment_clean_btn:hover {\r\n    background: #1d4ed8;\r\n}\r\n.zcc_comment_clean_copy_btn {\r\n    background: #10b981;\r\n}\r\n.zcc_comment_clean_copy_btn:hover {\r\n    background: #059669;\r\n}\r\n\r\n.zcc_comment_clean_reset_btn {\r\n    background: #64748b;\r\n}\r\n.zcc_comment_clean_reset_btn:hover {\r\n    background: #475569;\r\n}\r\n.zcc_comment_clean_label {\r\n    font-size: 14px;\r\n    font-weight: 500;\r\n    margin-bottom: 6px;\r\n    display: block;\r\n    color: #334155;\r\n}\r\n<\/style>\r\n\r\n<div class=\"zcc_comment_clean_container\">\r\n    <div class=\"zcc_comment_clean_textarea_wrap\">\r\n        <label class=\"zcc_comment_clean_label\">\u8f93\u5165\u5e26\u6ce8\u91ca\u7684\u4ee3\u7801<\/label>\r\n        <textarea class=\"zcc_comment_clean_textarea\" id=\"zcc_comment_input\" placeholder=\"\u8bf7\u7c98\u8d34\u9700\u8981\u6e05\u9664\u6ce8\u91ca\u7684\u4ee3\u7801...\"><\/textarea>\r\n    <\/div>\r\n    <div class=\"zcc_comment_clean_btn_wrap\">\r\n        <button class=\"zcc_comment_clean_btn\" id=\"zcc_clear_btn\">\u4e00\u952e\u6e05\u9664\u6240\u6709\u6ce8\u91ca<\/button>\r\n        <button class=\"zcc_comment_clean_btn zcc_comment_clean_copy_btn\" id=\"zcc_copy_btn\">\u590d\u5236\u6e05\u7406\u540e\u7684\u4ee3\u7801<\/button>\r\n        <!-- \u65b0\u589e\uff1a\u4e00\u952e\u6e05\u7a7a\u6309\u94ae -->\r\n        <button class=\"zcc_comment_clean_btn zcc_comment_clean_reset_btn\" id=\"zcc_reset_btn\">\u4e00\u952e\u6e05\u7a7a<\/button>\r\n    <\/div>\r\n    <div class=\"zcc_comment_clean_textarea_wrap\">\r\n        <label class=\"zcc_comment_clean_label\">\u6e05\u7406\u540e\u7684\u4ee3\u7801\uff08\u65e0\u6ce8\u91ca\uff09<\/label>\r\n        <textarea class=\"zcc_comment_clean_textarea\" id=\"zcc_comment_output\" readonly placeholder=\"\u6e05\u7406\u540e\u7684\u4ee3\u7801\u5c06\u663e\u793a\u5728\u8fd9\u91cc...\"><\/textarea>\r\n    <\/div>\r\n<\/div>\r\n\r\n<script>\r\n(function() {\r\n    const inputEl = document.getElementById('zcc_comment_input');\r\n    const outputEl = document.getElementById('zcc_comment_output');\r\n    const clearBtn = document.getElementById('zcc_clear_btn');\r\n    const copyBtn = document.getElementById('zcc_copy_btn');\r\n    const resetBtn = document.getElementById('zcc_reset_btn');\r\n\r\n    function clearAllComments() {\r\n        let code = inputEl.value;\r\n        if (!code.trim()) {\r\n            outputEl.value = '\u8bf7\u5148\u8f93\u5165\u9700\u8981\u6e05\u7406\u7684\u4ee3\u7801\uff01';\r\n            return;\r\n        }\r\n        let processed = code\r\n            .replace(\/\\\/\\*[\\s\\S]*?\\*\\\/\/g, '')\r\n            .replace(\/<!--[\\s\\S]*?-->\/g, '')\r\n            .replace(\/(\".*?\"|'.*?'|`.*?`)|(\\\/\\\/.*)\/gm, (match, str) => str || '')\r\n            .replace(\/^\\s*[\\r\\n]\/gm, '');\r\n        outputEl.value = processed;\r\n    }\r\n\r\n    async function copyResult() {\r\n        const result = outputEl.value.trim();\r\n        if (!result || result === '\u8bf7\u5148\u8f93\u5165\u9700\u8981\u6e05\u7406\u7684\u4ee3\u7801\uff01') {\r\n            alert('\u8bf7\u5148\u6e05\u7406\u4ee3\u7801\u518d\u590d\u5236\uff01');\r\n            return;\r\n        }\r\n        try {\r\n            await navigator.clipboard.writeText(result);\r\n            alert('\u590d\u5236\u6210\u529f\uff01');\r\n        } catch (err) {\r\n            const temp = document.createElement('textarea');\r\n            temp.value = result;\r\n            document.body.appendChild(temp);\r\n            temp.select();\r\n            document.execCommand('copy');\r\n            document.body.removeChild(temp);\r\n            alert('\u590d\u5236\u6210\u529f\uff01');\r\n        }\r\n    }\r\n\r\n\r\n    function resetAll() {\r\n        inputEl.value = '';\r\n        outputEl.value = '';\r\n    }\r\n\r\n    clearBtn.addEventListener('click', clearAllComments);\r\n    copyBtn.addEventListener('click', copyResult);\r\n    resetBtn.addEventListener('click', resetAll);\r\n})();\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u4ee3\u7801\u4e00\u952e\u53bb\u6ce8\u91ca \u8f93\u5165\u5e26\u6ce8\u91ca\u7684\u4ee3\u7801 \u4e00\u952e\u6e05\u9664\u6240\u6709\u6ce8\u91ca \u590d\u5236\u6e05\u7406\u540e\u7684\u4ee3\u7801 \u4e00\u952e\u6e05\u7a7a \u6e05\u7406\u540e\u7684\u4ee3\u7801\uff08\u65e0\u6ce8\u91ca\uff09<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":19,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-615","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/pages\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=615"}],"version-history":[{"count":18,"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/pages\/615\/revisions"}],"predecessor-version":[{"id":633,"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/pages\/615\/revisions\/633"}],"up":[{"embeddable":true,"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/pages\/19"}],"wp:attachment":[{"href":"https:\/\/www.05621997.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}