{"id":301398,"date":"2024-05-20T18:07:11","date_gmt":"2024-05-20T10:07:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/301398.html"},"modified":"2024-05-20T18:07:37","modified_gmt":"2024-05-20T10:07:37","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-js-%e6%88%96-css-%e5%ae%9e%e7%8e%b0%e7%80%91%e5%b8%83%e6%b5%81%e5%b8%83%e5%b1%80","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/301398.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 JS \u6216 CSS \u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26213637\/12ce93a8-4702-4fbc-af31-b3fcb078425e.webp\" alt=\"\u5982\u4f55\u4f7f\u7528 JS \u6216 CSS \u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\" \/><\/p>\n<p><p>\u5728\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\u4e2d\uff0c\u5173\u952e\u5728\u4e8e\u4f7f\u5143\u7d20\u4ee5\u591a\u5217\u5f62\u5f0f\u6392\u5217\u4e14\u6bcf\u5217\u7684\u9ad8\u5ea6\u80fd\u591f\u6839\u636e\u5185\u5bb9\u52a8\u6001\u8c03\u6574\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u5927\u5c0f\u7684\u56fe\u7247\u6216\u5185\u5bb9\u5757\u3002\u901a\u5e38\u6709\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<strong>\u4f7f\u7528\u7eaf CSS \u7684 <code>column<\/code> \u5c5e\u6027\u3001\u4f7f\u7528 JavaScript \u8ba1\u7b97\u5e76\u5b9a\u4f4d\u6bcf\u4e2a\u5143\u7d20\u3001\u4f7f\u7528 CSS Flexbox \u4ee5\u53ca CSS Grid Layout<\/strong>\u3002\u5728\u4f7f\u7528\u7eafCSS \u65b9\u6cd5\u65f6\u65e0\u9700\u989d\u5916\u7684JS\uff0c\u4f46\u5bf9\u6d4f\u89c8\u5668\u7684\u517c\u5bb9\u6027\u8981\u6c42\u8f83\u9ad8\uff1b\u800c\u4f7f\u7528JavaScript\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u7075\u6d3b\u548c\u517c\u5bb9\u8001\u65e7\u6d4f\u89c8\u5668\u7684\u7011\u5e03\u6d41\u5e03\u5c40\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528 CSS column \u5c5e\u6027<\/h3>\n<\/p>\n<p><p><strong>CSS column \u5c5e\u6027<\/strong>\u80fd\u591f\u5feb\u901f\u5b9e\u73b0\u57fa\u672c\u7684\u7011\u5e03\u6d41\u5e03\u5c40\u3002\u5b83\u53ef\u4ee5\u5c06\u5185\u5bb9\u5206\u5272\u6210\u591a\u4e2a\u5217\uff0c\u5e76\u4e14\u5f53\u65b0\u5185\u5bb9\u88ab\u6dfb\u52a0\u65f6\uff0c\u5217\u4f1a\u81ea\u52a8\u5e73\u8861\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-css\">.waterfall {<\/p>\n<p>  column-count: 4;<\/p>\n<p>  column-gap: 15px;<\/p>\n<p>}<\/p>\n<p>.waterfall-item {<\/p>\n<p>  break-inside: avoid-column;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5c06\u5bb9\u5668\u7c7b<code>.waterfall<\/code>\u5b9a\u4e49\u4e3a\u56db\u5217\uff0c\u5217\u4e0e\u5217\u4e4b\u95f4\u7684\u95f4\u9694\u4e3a15\u50cf\u7d20\u3002<code>.waterfall-item<\/code>\u5219\u662f\u6bcf\u4e00\u4e2a\u7011\u5e03\u6d41\u4e2d\u7684\u9879\u76ee\uff0c<code>break-inside: avoid-column;<\/code>\u662f\u4e3a\u4e86\u9632\u6b62\u9879\u76ee\u8de8\u5217\u5c55\u793a\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 JavaScript \u5b9a\u4f4d\u5143\u7d20<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u8981\u6c42\u66f4\u9ad8\u6216\u8005\u66f4\u590d\u6742\u5e03\u5c40\u7684\u7011\u5e03\u6d41\uff0c\u6216\u8005\u8981\u517c\u5bb9\u8f83\u65e9\u7248\u672c\u7684\u6d4f\u89c8\u5668\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u4f7f\u7528 <strong>JavaScript \u4ee3\u7801\u6765\u8ba1\u7b97\u548c\u5b9a\u4f4d\u6bcf\u4e2a\u5143\u7d20<\/strong>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">function layoutWaterfall() {<\/p>\n<p>  let items = document.querySelectorAll(&#039;.waterfall-item&#039;);<\/p>\n<p>  let columnWidth = items[0].offsetWidth;<\/p>\n<p>  let numColumns = Math.floor(cont<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ner.offsetWidth \/ columnWidth);<\/p>\n<p>  let columnHeights = new Array(numColumns).fill(0);<\/p>\n<p>  items.forEach(item =&gt; {<\/p>\n<p>    let minColumnHeight = Math.min(...columnHeights);<\/p>\n<p>    let columnIndex = columnHeights.indexOf(minColumnHeight);<\/p>\n<p>    item.style.position = &#039;absolute&#039;;<\/p>\n<p>    item.style.top = `${minColumnHeight}px`;<\/p>\n<p>    item.style.left = `${columnWidth * columnIndex}px`;<\/p>\n<p>    columnHeights[columnIndex] += item.offsetHeight;<\/p>\n<p>  });<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u8ba1\u7b97\u51fa\u80fd\u591f\u653e\u5728\u7011\u5e03\u6d41\u5bb9\u5668\u4e2d\u7684\u5217\u6570\uff0c\u7136\u540e\u4f9d\u6b21\u8ba1\u7b97\u6bcf\u4e2a\u5143\u7d20\u5e94\u8be5\u653e\u7f6e\u7684\u5217\u3002\u4e3a\u4e86\u4f7f\u5e03\u5c40\u5747\u8861\uff0c\u6211\u4eec\u603b\u662f\u5c06\u5143\u7d20\u653e\u5728\u5f53\u524d\u6700\u77ed\u7684\u5217\u4e0a\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\u8ba1\u7b97\u51fa\u6bcf\u4e2a\u9879\u76ee\u7684\u4e0a\u8fb9\u8ddd<code>top<\/code>\u548c\u5de6\u8fb9\u8ddd<code>left<\/code>\u6765\u786e\u5b9a\u5176\u5728\u9875\u9762\u4e0a\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5229\u7528 Flexbox \u8fdb\u884c\u5e03\u5c40<\/h3>\n<\/p>\n<p><p><strong>CSS Flexbox<\/strong> \u662f\u8fd1\u5e74\u6765\u975e\u5e38\u53d7\u6b22\u8fce\u7684\u4e00\u79cd\u5e03\u5c40\u65b9\u6848\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5bb9\u5668\u6765\u8fdb\u884c\u7075\u6d3b\u7684\u5e03\u5c40\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-css\">.waterfall {<\/p>\n<p>  display: flex;<\/p>\n<p>  flex-direction: column;<\/p>\n<p>  flex-wrap: wrap;<\/p>\n<p>  align-content: space-between;<\/p>\n<p>}<\/p>\n<p>.waterfall-item {<\/p>\n<p>  flex: 1 1 auto;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Flexbox \u7248\u672c\u7684\u7011\u5e03\u6d41\u5e03\u5c40\u8f83\u4e3a\u590d\u6742\u3002\u539f\u56e0\u662f Flexbox \u7684 <code>flex-wrap: wrap;<\/code> \u7279\u6027\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u6309\u884c\u6392\u5217\u7684\uff0c\u5bf9\u4e8e\u5217\u5f0f\u7011\u5e03\u6d41\u5e03\u5c40\uff0c\u53ef\u80fd\u4e0d\u4f1a\u975e\u5e38\u9002\u7528\u3002\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 JavaScript \u8f85\u52a9\u6765\u786e\u5b9a\u6bcf\u4e2a\u9879\u76ee\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528 CSS Grid Layout<\/h3>\n<\/p>\n<p><p><strong>CSS Grid Layout<\/strong> \u4e3a\u521b\u5efa\u7f51\u9875\u5e03\u5c40\u63d0\u4f9b\u4e86\u4e8c\u7ef4\u7f51\u683c\u7684\u53ef\u80fd\u6027\uff0c\u8fd9\u8ba9\u6211\u4eec\u80fd\u591f\u7528\u4e00\u79cd\u5168\u65b0\u7684\u65b9\u5f0f\u6765\u601d\u8003\u5e03\u5c40\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-css\">.waterfall {<\/p>\n<p>  display: grid;<\/p>\n<p>  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));<\/p>\n<p>  grid-auto-rows: minmax(100px, auto);<\/p>\n<p>  grid-gap: 15px;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u7f51\u683c\u5e03\u5c40<code>.waterfall<\/code>\u3002<code>grid-template-columns<\/code>\u5b9a\u4e49\u4e86\u6bcf\u5217\u7684\u6700\u5c0f\u548c\u6700\u5927\u5bbd\u5ea6\uff0c\u800c<code>grid-auto-rows<\/code>\u5b9a\u4e49\u4e86\u884c\u7684\u6700\u5c0f\u9ad8\u5ea6\u3002<code>grid-gap<\/code>\u5219\u8bbe\u7f6e\u4e86\u9879\u76ee\u4e4b\u95f4\u7684\u95f4\u9694\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\uff0c\u4f46\u7531\u4e8e Grid \u5e03\u5c40\u662f\u5747\u5300\u6392\u5e03\u7684\uff0c\u6240\u4ee5\u53ef\u80fd\u4e0d\u4f1a\u5b8c\u5168\u7b26\u5408\u7011\u5e03\u6d41\u7684\u4e0d\u89c4\u5219\u7279\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7ed3\u5408\u4f7f\u7528 JavaScript \u548c CSS<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u573a\u5408\uff0c\u4e3a\u4e86\u8fbe\u5230\u6700\u4f73\u6548\u679c\uff0c\u4f60\u9700\u8981\u7ed3\u5408\u4f7f\u7528 JavaScript \u548c CSS\u3002JavaScript \u7528\u4e8e\u8ba1\u7b97\u548c\u5b9a\u4f4d\uff0cCSS \u7528\u4e8e\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528 JavaScript \u53ef\u4ee5\u5728\u9875\u9762\u52a0\u8f7d\u53ca\u7a97\u53e3\u5927\u5c0f\u53d8\u5316\u65f6\u91cd\u65b0\u8ba1\u7b97\u5e03\u5c40\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u7011\u5e03\u6d41\u7684\u8fde\u7eed\u6027\u548c\u54cd\u5e94\u6027\u3002\u800c CSS \u7528\u4e8e\u8bbe\u7f6e\u52a8\u753b\u3001\u8fc7\u6e21\u6548\u679c\u4ee5\u53ca\u54cd\u5e94\u5f0f\u5e03\u5c40\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u5404\u79cd\u65b9\u6848\uff0c\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\u4f1a\u6709\u6240\u4e0d\u540c\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u9700\u6c42\u3001\u6d4f\u89c8\u5668\u652f\u6301\u60c5\u51b5\u4ee5\u53ca\u4e2a\u4eba\u504f\u597d\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u3002\u8bb0\u5f97\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u548c\u8bbe\u5907\u4e0a\u6d4b\u8bd5\u4f60\u7684\u5e03\u5c40\uff0c\u4ee5\u786e\u4fdd\u7011\u5e03\u6d41\u5728\u5404\u79cd\u6761\u4ef6\u4e0b\u90fd\u80fd\u826f\u597d\u5730\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u7011\u5e03\u6d41\u5e03\u5c40\u662f\u4ec0\u4e48\uff1f\u5982\u4f55\u4f7f\u7528JS\u6216CSS\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\uff1f<\/strong><\/p>\n<p>\u7011\u5e03\u6d41\u5e03\u5c40\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u7f51\u9875\u5e03\u5c40\u65b9\u5f0f\uff0c\u5b83\u901a\u8fc7\u5448\u73b0\u4e0d\u540c\u9ad8\u5ea6\u7684\u7f51\u683c\uff08\u7c7b\u4f3c\u4e8e\u7011\u5e03\u6d41\u7684\u6548\u679c\uff09\uff0c\u4e3a\u5185\u5bb9\u63d0\u4f9b\u66f4\u591a\u7684\u7a7a\u95f4\u3002\u8981\u4f7f\u7528JS\u6216CSS\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\uff0c\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u4e24\u79cd\u65b9\u6cd5\uff1a<\/p>\n<p>a. \u4f7f\u7528CSS\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\uff1a\u901a\u8fc7\u4f7f\u7528CSS\u4e2d\u7684\u6d6e\u52a8\u6216\u7f51\u683c\u5e03\u5c40\uff0c\u53ef\u4ee5\u5c06\u7f51\u683c\u5143\u7d20\u653e\u7f6e\u5728\u4e0d\u540c\u7684\u4f4d\u7f6e\uff0c\u4ece\u800c\u5b9e\u73b0\u7011\u5e03\u6d41\u6548\u679c\u3002\u53ef\u4ee5\u4f7f\u7528CSS\u7684column-count\u5c5e\u6027\u521b\u5efa\u591a\u5217\u5e03\u5c40\uff0c\u6216\u4f7f\u7528flexbox\u5e03\u5c40\u5b9e\u73b0\u54cd\u5e94\u5f0f\u7684\u7011\u5e03\u6d41\u5e03\u5c40\u3002<\/p>\n<p>b. \u4f7f\u7528JS\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\uff1a\u901a\u8fc7\u4f7f\u7528JS\u5e93\uff08\u5982Masonry.js\u6216Isotope.js\uff09\u53ef\u4ee5\u5728\u7f51\u9875\u4e2d\u81ea\u52a8\u751f\u6210\u7011\u5e03\u6d41\u5e03\u5c40\u3002\u8fd9\u4e9b\u5e93\u53ef\u4ee5\u6839\u636e\u7f51\u683c\u5143\u7d20\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e\uff0c\u81ea\u52a8\u8c03\u6574\u7f51\u683c\u7684\u5e03\u5c40\uff0c\u5b9e\u73b0\u7011\u5e03\u6d41\u7684\u6548\u679c\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u786e\u4fdd\u7011\u5e03\u6d41\u5e03\u5c40\u5728\u4e0d\u540c\u5c4f\u5e55\u5927\u5c0f\u4e0b\u7684\u9002\u5e94\u6027\uff1f<\/strong><\/p>\n<p>\u4e3a\u4e86\u786e\u4fdd\u7011\u5e03\u6d41\u5e03\u5c40\u5728\u4e0d\u540c\u5c4f\u5e55\u5927\u5c0f\u4e0b\u7684\u9002\u5e94\u6027\uff0c\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<p>a. \u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff1a\u4f7f\u7528\u5a92\u4f53\u67e5\u8be2\uff08media queries\uff09\u53ef\u4ee5\u6839\u636e\u5c4f\u5e55\u5927\u5c0f\u548c\u8bbe\u5907\u7c7b\u578b\u5e94\u7528\u4e0d\u540c\u7684\u6837\u5f0f\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5c4f\u5e55\u5206\u8fa8\u7387\u3002<\/p>\n<p>b. \u81ea\u9002\u5e94\u7f51\u683c\uff1a\u4f7f\u7528CSS\u4e2d\u7684\u7f51\u683c\u5e03\u5c40\u6216\u5f39\u6027\u5e03\u5c40\uff08flexbox\uff09\u53ef\u4ee5\u6839\u636e\u5c4f\u5e55\u5927\u5c0f\u81ea\u52a8\u8c03\u6574\u7f51\u683c\u5143\u7d20\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5c4f\u5e55\u5206\u8fa8\u7387\u3002<\/p>\n<p>c. \u56fe\u7247\u4f18\u5316\uff1a\u4e3a\u4e86\u63d0\u9ad8\u9875\u9762\u52a0\u8f7d\u901f\u5ea6\uff0c\u53ef\u4ee5\u4f7f\u7528\u54cd\u5e94\u5f0f\u56fe\u7247\u6280\u672f\uff0c\u6839\u636e\u5c4f\u5e55\u5927\u5c0f\u52a0\u8f7d\u9002\u5f53\u5927\u5c0f\u7684\u56fe\u7247\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\u4e2d\u7684\u52a8\u753b\u6548\u679c\uff1f<\/strong><\/p>\n<p>\u8981\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\u4e2d\u7684\u52a8\u753b\u6548\u679c\uff0c\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<p>a. CSS\u8fc7\u6e21\u6548\u679c\uff1a\u4f7f\u7528CSS\u8fc7\u6e21\u5c5e\u6027\uff08transition\uff09\u53ef\u4ee5\u4e3a\u7f51\u683c\u5143\u7d20\u6dfb\u52a0\u5e73\u6ed1\u7684\u52a8\u753b\u6548\u679c\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u8fc7\u6e21\u7684\u5c5e\u6027\uff08\u5982\u5bbd\u5ea6\u3001\u9ad8\u5ea6\u3001\u4f4d\u7f6e\u7b49\uff09\uff0c\u63a7\u5236\u7f51\u683c\u5143\u7d20\u5728\u5e03\u5c40\u6539\u53d8\u65f6\u7684\u52a8\u753b\u6548\u679c\u3002<\/p>\n<p>b. CSS\u5173\u952e\u5e27\u52a8\u753b\uff1a\u4f7f\u7528CSS\u5173\u952e\u5e27\u52a8\u753b\uff08@keyframes\uff09\u53ef\u4ee5\u521b\u5efa\u66f4\u590d\u6742\u7684\u52a8\u753b\u6548\u679c\u3002\u901a\u8fc7\u5b9a\u4e49\u5173\u952e\u5e27\u7684\u6837\u5f0f\uff0c\u53ef\u4ee5\u4e3a\u7f51\u683c\u5143\u7d20\u6dfb\u52a0\u52a8\u753b\u6548\u679c\uff0c\u5982\u6e10\u53d8\u3001\u65cb\u8f6c\u3001\u653e\u5927\u7f29\u5c0f\u7b49\u3002<\/p>\n<p>c. JS\u52a8\u753b\u5e93\uff1a\u4f7f\u7528JS\u52a8\u753b\u5e93\uff08\u5982GreenSock Animation Platform\u3001Anime.js\u7b49\uff09\u53ef\u4ee5\u5b9e\u73b0\u66f4\u9ad8\u7ea7\u7684\u52a8\u753b\u6548\u679c\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u52a8\u753b\u9009\u9879\u548c\u6548\u679c\uff0c\u53ef\u4ee5\u4e3a\u7f51\u683c\u5143\u7d20\u6dfb\u52a0\u4ea4\u4e92\u6027\u548c\u52a8\u6001\u6027\u7684\u52a8\u753b\u6548\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u5b9e\u73b0\u7011\u5e03\u6d41\u5e03\u5c40\u4e2d\uff0c\u5173\u952e\u5728\u4e8e\u4f7f\u5143\u7d20\u4ee5\u591a\u5217\u5f62\u5f0f\u6392\u5217\u4e14\u6bcf\u5217\u7684\u9ad8\u5ea6\u80fd\u591f\u6839\u636e\u5185\u5bb9\u52a8\u6001\u8c03\u6574\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u5927\u5c0f\u7684\u56fe\u7247\u6216\u5185\u5bb9\u5757 [&hellip;]","protected":false},"author":3,"featured_media":301433,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/301398"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=301398"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/301398\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/301433"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=301398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=301398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=301398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}