{"id":2524,"date":"2024-11-10T13:08:21","date_gmt":"2024-11-10T05:08:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2524\/"},"modified":"2024-11-10T13:08:21","modified_gmt":"2024-11-10T05:08:21","slug":"%e5%a6%82%e4%bd%95%e9%80%9a%e8%bf%87%e7%82%b9%e5%87%bb%e8%a1%a8%e5%a4%b4%e5%88%a0%e9%99%a4%e8%af%a5%e5%88%97%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2524\/","title":{"rendered":"\u5982\u4f55\u901a\u8fc7\u70b9\u51fb\u8868\u5934\u5220\u9664\u8be5\u5217\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173078318382494.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u901a\u8fc7\u70b9\u51fb\u8868\u5934\u5220\u9664\u8be5\u5217\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u901a\u8fc7\u70b9\u51fb\u8868\u5934\u5220\u9664\u8be5\u5217\uff1f\u63d2\u56fe\" \/><\/p>\n<p>\u5982\u4f55\u901a\u8fc7\u70b9\u51fb\u8868\u5934\u5220\u9664\u8be5\u5217\uff1f<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u4f3c\u4e4e\u6ca1\u6709\u4e00\u4e2a\u660e\u786e\u7684\u601d\u8def\u3002\u4f46\u662f\uff0c\u6709\u4e00\u4e2a\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u4e3a\u6bcf\u4e2a\u8868\u5934\u6dfb\u52a0\u4e00\u4e2a\u5355\u51fb\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u3002\u5f53\u7528\u6237\u5355\u51fb\u8868\u5934\u65f6\uff0c\u5904\u7406\u7a0b\u5e8f\u53ef\u4ee5\u68c0\u7d22\u5217\u53f7\uff0c\u7136\u540e\u4ece\u8868\u4e2d\u5220\u9664\u8be5\u5217\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u53ef\u80fd\u7684\u6f14\u793a\u4ee3\u7801\u7247\u6bb5\uff1a<\/p>\n<pre>&lt;table&gt;\n  &lt;thead&gt;\n    &lt;tr&gt;\n      &lt;th onclick=\"deleteColumn(this)\"&gt;\u5217 1&lt;\/th&gt;\n      &lt;th onclick=\"deleteColumn(this)\"&gt;\u5217 2&lt;\/th&gt;\n      &lt;th onclick=\"deleteColumn(this)\"&gt;\u5217 3&lt;\/th&gt;\n    &lt;\/tr&gt;\n  &lt;\/thead&gt;\n  &lt;tbody&gt;\n    &lt;tr&gt;\n      &lt;td&gt;\u6570\u636e 1&lt;\/td&gt;\n      &lt;td&gt;\u6570\u636e 2&lt;\/td&gt;\n      &lt;td&gt;\u6570\u636e 3&lt;\/td&gt;\n    &lt;\/tr&gt;\n    &lt;tr&gt;\n      &lt;td&gt;\u6570\u636e 4&lt;\/td&gt;\n      &lt;td&gt;\u6570\u636e 5&lt;\/td&gt;\n      &lt;td&gt;\u6570\u636e 6&lt;\/td&gt;\n    &lt;\/tr&gt;\n  &lt;\/tbody&gt;\n&lt;\/table&gt;\n\n&lt;script&gt;\n  function deleteColumn(th) {\n    const index = th.cellIndex;\n    const table = th.parentNode.parentNode;\n    for (let i = 0; i &lt; table.rows.length; i++) {\n      table.rows[i].deleteCell(index);\n    }\n  }\n&lt;\/script&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u901a\u8fc7\u70b9\u51fb\u8868\u5934\u5220\u9664\u8be5\u5217\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u901a\u8fc7\u70b9\u51fb\u8868\u5934\u5220\u9664\u8be5\u5217\uff1f \u8fd9\u4e2a\u95ee\u9898\u4f3c\u4e4e\u6ca1\u6709\u4e00\u4e2a\u660e\u786e\u7684\u601d\u8def\u3002\u4f46\u662f\uff0c\u6709\u4e00\u4e2a\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u4e3a\u6bcf\u4e2a\u8868\u5934\u6dfb\u52a0\u4e00\u4e2a\u5355\u51fb\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u3002\u5f53\u7528\u6237\u5355\u51fb\u8868\u5934\u65f6\uff0c\u5904\u7406\u7a0b\u5e8f\u53ef\u4ee5\u68c0\u7d22\u5217\u53f7\uff0c\u7136\u540e\u4ece\u8868\u4e2d\u5220\u9664\u8be5\u5217\u3002 \u4ee5\u4e0b\u662f\u4e00\u4e2a\u53ef\u80fd\u7684\u6f14\u793a\u4ee3\u7801\u7247\u6bb5\uff1a &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th onclick=&#8221;deleteColumn(this)&#8221;&gt;\u5217 1&lt;\/th&gt; &lt;th onclick=&#8221;deleteColumn(this)&#8221;&gt;\u5217 2&lt;\/th&gt; &lt;th onclick=&#8221;deleteColumn(this)&#8221;&gt;\u5217 3&lt;\/th&gt; &lt;\/tr&gt; &lt;\/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;\u6570\u636e 1&lt;\/td&gt; &lt;td&gt;\u6570\u636e 2&lt;\/td&gt; &lt;td&gt;\u6570\u636e 3&lt;\/td&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td&gt;\u6570\u636e 4&lt;\/td&gt; &lt;td&gt;\u6570\u636e 5&lt;\/td&gt; &lt;td&gt;\u6570\u636e 6&lt;\/td&gt; &lt;\/tr&gt; &lt;\/tbody&gt; &lt;\/table&gt; &lt;script&gt; function deleteColumn(th) { const index = th.cellIndex; const table = th.parentNode.parentNode; for (let i = 0; i &lt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2524","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2524"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2524\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}