{"id":10006359,"date":"2022-08-31T11:10:51","date_gmt":"2022-08-31T03:10:51","guid":{"rendered":"https:\/\/ityet.com\/?p=10006359"},"modified":"2022-08-31T11:10:51","modified_gmt":"2022-08-31T03:10:51","slug":"%e5%ae%9a%e5%88%b6%e4%b8%80%e4%b8%aa-vue-3-%e6%a8%a1%e6%9d%bf-%e9%9b%86%e6%88%90-vite-pinia-vue-router-%e4%b8%8e-tailwind-css","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006359","title":{"rendered":"\u5b9a\u5236\u4e00\u4e2a Vue 3 \u6a21\u677f &#8211; \u96c6\u6210 Vite, Pinia, Vue Router \u4e0e Tailwind CSS"},"content":{"rendered":"<blockquote><p>\u5fae\u4fe1\u641c\u7d22 \u3010\u5927\u8fc1\u4e16\u754c\u3011, \u6211\u4f1a\u7b2c\u4e00\u65f6\u95f4\u548c\u4f60\u5206\u4eab\u524d\u7aef\u884c\u4e1a\u8d8b\u52bf\uff0c\u5b66\u4e60\u9014\u5f84\u7b49\u7b49\u3002<br \/>\u672c\u6587 GitHub  <a href=\"https:\/\/link.segmentfault.com\/?enc=FkFHBDmJQjYL4CbpS4yBJA%3D%3D.UteCH%2FVcHNy8Sw%2BYbvKabY8Gf2h9R1GrErumRwJ2ZMAgfbbptGrOwdWN0L9CiTJM\" rel=\"nofollow\">https:\/\/github.com\/qq449245884\/xiaozhi<\/a> \u5df2\u6536\u5f55\uff0c\u6709\u4e00\u7ebf\u5927\u5382\u9762\u8bd5\u5b8c\u6574\u8003\u70b9\u3001\u8d44\u6599\u4ee5\u53ca\u6211\u7684\u7cfb\u5217\u6587\u7ae0\u3002<\/p><\/blockquote>\n<p>\u4e0d\u4e45\u524d\uff0c\u6211\u610f\u8bc6\u5230\u6211\u6b63\u5728\u7528\u4e00\u4e9b\u91cd\u590d\u4f7f\u7528\u7684\u540e\u53f0\u57fa\u7840\u6a21\u677f\uff0c\u6d6a\u8d39\u4e86\u6211\u4e00\u4e9b\u6478\u9c7c\u65f6\u95f4\uff0c\u6211\u7a81\u7136\u60f3\u5230&#8211;\u4e3a\u4ec0\u4e48\u4e0d\u628a\u8fd9\u4e9b\u53ef\u91cd\u590d\u4f7f\u7528\u7684\u90e8\u5206\u91cd\u65b0\u5229\u7528\u8d77\u6765\uff0c\u628a\u5b83\u4eec\u7b80\u5355\u5730\u5806\u5728\u4e00\u4e2a\u6a21\u677f\u91cc\u5462\uff1f\ud83e\udd14<\/p>\n<h2>\u6280\u672f\u6808<\/h2>\n<p>\u8fd9\u4e2a\u540e\u53f0\u6a21\u677f\u4e2d\uff0c\u7528\u5230\u4e86\u5982\u4e0b\u7684\u6846\u67b6\u6216\u5e93\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=1dS1Dh0GO9YTJLaRBbFZMg%3D%3D.W5bsyW7PhNre3jGq91ATsauFE%2BCJj4yE7G2xQuoKV9Y%3D\" rel=\"nofollow\">Vite<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=nSLgy06IwBxgGhmpZcxN5Q%3D%3D.t0NtgfjDn7y8asiVDXP67N9z2Y9TCO7SMfz3k38vlvA%3D\" rel=\"nofollow\">Pinia<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=%2FH8HRyrp2avrNzIVeg3axw%3D%3D.wMFJ8UwkG%2FKqFK%2BOxXZcuf6GtP2kjoS99X1Do%2BNij0A%3D\" rel=\"nofollow\">Vue Router<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=lVoxTzsWpxc1Obwy9uoGGg%3D%3D.daIzwZJy69sxoK0nqd2M7nDL83ZuW05IdH%2Bb4Yi%2B%2FDM%3D\" rel=\"nofollow\">Tailwind CSS <\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=3trHb7IdaiPPESU8DaNyRw%3D%3D.CdgcGciR1Syr36yzxDv7uaUYMYyoI7SeOQG0mQTRZGI9ErMSHOe4%2FhJHnOFe2d3p\" rel=\"nofollow\">Vite SVG loader<\/a><\/li>\n<\/ul>\n<h2>\u524d\u63d0<\/h2>\n<p>\u5f00\u59cb\u4e4b\u524d\uff0c\u9996\u5148\u8981\u5b89\u88c5 Node.js\uff0c\u8fd9\u4e2a\u81ea\u884c\u767e\u5ea6\u89e3\u51b3\u3002<\/p>\n<h2>\u5feb\u901f\u5165\u95e8 &#8211; Vue, Router &#038; Store<\/h2>\n<p>\u6211\u4eec\u5148\u4ece\u521d\u59cb\u5316\u6a21\u677f\u5f00\u59cb\uff1a<\/p>\n<pre><code>npm init vue@latest<\/code><\/pre>\n<p>\u63a5\u7740\u8f93\u5165\u9879\u76ee\u540d\u79f0 <code>vue3-boilerplate<\/code>\uff0c\u7136\u540e\u5728\u529f\u80fd\u63d0\u793a\u4e2d\u9009\u62e9\u5b89\u88c5 <code>Pinia<\/code>\u548c <code>Vue Router<\/code>:<\/p>\n<pre><code>\u2714 Project name: vue3-boilerplate\n...\n\u2714 Add Vue Router for Single Page Application development? Yes\n\u2714 Add Pinia for state management? Yes<\/code><\/pre>\n<p>\u6839\u636e\u63d0\u793a\uff0c\u9009\u62e9\u6240\u9700\u529f\u80fd\u540e\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>cd vue3-boilerplate\nnpm install\nnpm run dev<\/code><\/pre>\n<p>\u8fd0\u884c\u540e\u5728\u672c\u5730\u5f00\u53d1\u73af\u5883\u4e2d\u67e5\u770b <code>http:\/\/127.0.0.1:5173<\/code> \u6b64\u793a\u4f8b\u9875\u9762\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1FJ1\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h2>\u6dfb\u52a0 Tailwind CSS<\/h2>\n<p>\u6709\u4e86\u57fa\u7840\u540e\uff0c\u73b0\u5728\u6211\u4eec\u9700\u8981\u4e00\u4e9b\u6837\u5f0f\u3002\u6309\u7167\u8fd9<a href=\"https:\/\/link.segmentfault.com\/?enc=SWx67WdUjv59OjtvLhi85w%3D%3D.GWbMPdguHxTCgMzxSVlZTfXkR%2BRxtLD5%2F7vGhhQ1BhtKni%2FOQ9Aukp4QG%2FyHrhnb\" rel=\"nofollow\">\u4e2a\u6307\u5357<\/a>\uff0c\u6211\u4eec\u5b89\u88c5Tailwind CSS\uff0c\u7136\u540e\u521d\u59cb\u5316\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<pre><code>npm install -D tailwindcss postcss autoprefixer\nnpx tailwindcss init -p<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c\u540e\uff0c\u5728\u6839\u76ee\u5f55\u4e2d\uff0c\u4f1a\u6709\u4e00\u4e2a <code>tailwind.config.js<\/code>\u6587\u4ef6\uff0c\u586b\u5145\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code>\/** @type {import('tailwindcss').Config} *\/\nmodule.exports = {\n  content: [&quot;.\/index.html&quot;, &quot;.\/src\/**\/*.{vue,js,ts,jsx,tsx}&quot;],\n  theme: {\n    extend: {},\n  },\n  plugins: [],\n};\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u52a0\u8f7d <code>@tailwind<\/code> \u6307\u4ee4\uff0c\u6240\u4ee5\u5728 <code>\/src\/assets<\/code> \u6587\u4ef6\u5939\u4e2d\u521b\u5efa<code>tailwind.css<\/code>\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9(\u6307\u4ee4):<\/p>\n<pre><code>@tailwind base;\n@tailwind components;\n@tailwind utilities;<\/code><\/pre>\n<p>\u7136\u540e\u5728 <code>\/src\/assets\/main.css<\/code> \u9876\u90e8\u5bfc\u5165\u5b83\uff1a<\/p>\n<pre><code>@import &quot;.\/tailwind.css&quot;;<\/code><\/pre>\n<p>\u7531\u4e8e\u6211\u4eec\u5df2\u7ecf\u5728 <code>\/src\/main.js<\/code> \u4e2d\u5bfc\u5165\u4e86 <code>\/src\/assets\/main.css<\/code> \u6587\u4ef6\uff0c\u6240\u4ee5\uff0c\u73b0\u5728\u5c31\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u4f7f\u7528 Tailwind \u7684\u5b9e\u7528\u7c7b\u4e86\u3002<\/p>\n<p>\u6211\u4eec\u5728 <code>\/src\/views\/AboutView.vue<\/code> \u4e2d\u7684 <code>h1<\/code> \u6807\u7b7e\u6dfb\u52a0\u4e00\u4e9b\u5b9e\u7528\u7c7b\u6765\u6d4b\u8bd5\u4e00\u4e0b\uff1a<\/p>\n<pre><code>&lt;template&gt;\n  &lt;div class=&quot;about&quot;&gt;\n    &lt;h1 class=&quot;text-xl font-medium text-white&quot;&gt;This is an about page&lt;\/h1&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728\u4e0b\u9762\u5355\u72ec\u5b9a\u4e49\u6211\u4eec\u7684CSS\u5c5e\u6027\u3002\u8981\u505a\u5230\u8fd9\u4e00\u70b9\uff0c\u9700\u8981\u5b89\u88c5\u8fd9\u4e2aPostCSS\u63d2\u4ef6 &#8211; <code>postcss-import<\/code>\u3002<\/p>\n<pre><code>npm install -D postcss-import<\/code><\/pre>\n<p>\u63a5\u7740\uff0c\u5728\u5b9e\u7528\u7c7b\u4e2d\u4f7f\u7528 <code>@apply<\/code>:<\/p>\n<pre><code>&lt;style lang=&quot;scss&quot;&gt;\n.about {\n  @apply lg:min-h-screen lg:flex lg:items-center;\n  h1 {\n    @apply text-xl font-medium text-white;\n  }\n}\n&lt;\/style&gt;\n<\/code><\/pre>\n<h2>\u6dfb\u52a0 SVG loader \uff08\u53ef\u9009\uff09<\/h2>\n<p>\u6211\u6bd4\u8f83\u559c\u6b22SVG\uff0c\ud83e\udd41\u6070\u597d\uff0c\u6211\u4eec\u65b0\u7684\u6a21\u677f\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5bfc\u5165SVG\u56fe\u50cf\uff0c\u4f46\u6709\u4e00\u4e2a\u95ee\u9898&#8211;\u6211\u4eec\u5fc5\u987b\u628a\u5b83\u4f5c\u4e3a\u7ec4\u4ef6\u4f7f\u7528\uff0c\u8fd9\u610f\u5473\u7740\u9700\u8981\u624b\u52a8\u5728\u6a21\u677f\u6807\u7b7e\u4e2d\u6dfb\u52a0SVG\u4ee3\u7801\uff0c\u7136\u540e\u50cf\u8fd9\u6837\u5bfc\u5165\u3002<\/p>\n<p>\u5e78\u8fd0\u7684\u662f\uff0c\u6709\u8fd9\u6837\u4e00\u4e2a <a href=\"https:\/\/link.segmentfault.com\/?enc=X7B3Y6Z1zdRS%2FqyIGJ5hSg%3D%3D.dmrFnvyRCc9VP0ObJSNeveZnpTJIbzYSSSW%2FmPgUVdGaMxt75RWrogLHsHBWoNSl\" rel=\"nofollow\">vit-svg-loader<\/a> \u5305\uff0c\u5b83\u57fa\u672c\u4e0a\u53ef\u4ee5\u8ba9\u6211\u4eec\u5728Vue\u6a21\u677f\u4e2d\u7b80\u5355\u5730\u5bfc\u5165 <code>.svg<\/code> \u6587\u4ef6\u4f5c\u4e3a\u7ec4\u4ef6\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5b89\u88c5\u5b83\uff1a<\/p>\n<pre><code>npm install vite-svg-loader --save-dev<\/code><\/pre>\n<p>\u5728 <code>vite.config.js<\/code> \u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u8fd9\u4e2a\u63d2\u4ef6:<\/p>\n<pre><code>import svgLoader from 'vite-svg-loader'\nexport default defineConfig({\n   plugins: [vue(), svgLoader()],\n   ...\n})<\/code><\/pre>\n<p>\u6700\u540e\uff0c\u4e3a\u4e86\u6d4b\u8bd5\uff0c\u628a<code>\/src\/assets\/logo.svg<\/code> \u4e2d\u7684 Vue logo \u4ee3\u7801\u6539\u6210\u8fd9\u4e2a\uff0c\u7136\u540e\u4fdd\u5b58:<\/p>\n<pre><code>&lt;svg xmlns=&quot;http:\/\/www.w3.org\/2000\/svg&quot; xmlns:xlink=&quot;http:\/\/www.w3.org\/1999\/xlink&quot; viewBox=&quot;0 0 2454.32 2457.41&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;a&quot; x1=&quot;285.11&quot; y1=&quot;1790.44&quot; x2=&quot;285.7&quot; y2=&quot;1789.74&quot; gradientTransform=&quot;matrix(2454.32, 0, 0, -2187.24, -699180.9, 3916163.49)&quot; gradientUnits=&quot;userSpaceOnUse&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#41d1ff&quot;\/&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#bd34fe&quot;\/&gt;&lt;\/linearGradient&gt;&lt;linearGradient id=&quot;b&quot; x1=&quot;285.22&quot; y1=&quot;1790.33&quot; x2=&quot;285.29&quot; y2=&quot;1789.46&quot; gradientTransform=&quot;matrix(1125.42, 0, 0, -2051.66, -319596.68, 3673197.31)&quot; gradientUnits=&quot;userSpaceOnUse&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#ffea83&quot;\/&gt;&lt;stop offset=&quot;0.08&quot; stop-color=&quot;#ffdd35&quot;\/&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#ffa800&quot;\/&gt;&lt;\/linearGradient&gt;&lt;\/defs&gt;&lt;path d=&quot;M2464.14,381.6,1311.22,2443.21c-23.8,42.57-85,42.82-109.12.46L26.33,381.79C0,335.63,39.47,279.72,91.78,289.08L1245.93,495.37a62.88,62.88,0,0,0,22.27,0l1130-206C2450.35,279.87,2490,335.35,2464.14,381.6Z&quot; transform=&quot;translate(-17.94 -17.87)&quot; style=&quot;fill:url(#a)&quot;\/&gt;&lt;path d=&quot;M1795.71,18.48,942.53,185.66a31.33,31.33,0,0,0-25.25,28.9L864.8,1101a31.33,31.33,0,0,0,29.41,33.14,31.77,31.77,0,0,0,8.91-.75l237.54-54.82a31.32,31.32,0,0,1,37.73,36.79l-70.57,345.59a31.33,31.33,0,0,0,39.8,36.24l146.72-44.57a31.34,31.34,0,0,1,39.79,36.32L1222,2031.73c-7,33.95,38.14,52.47,57,23.36l12.59-19.44L1986.77,648.19c11.65-23.23-8.44-49.72-33.94-44.79l-244.52,47.18a31.33,31.33,0,0,1-36-39.44L1831.86,57.91a31.34,31.34,0,0,0-36.14-39.43Z&quot; transform=&quot;translate(-17.94 -17.87)&quot; style=&quot;fill:url(#b)&quot;\/&gt;&lt;\/svg&gt;<\/code><\/pre>\n<p>\u7136\u540e\u5728 <code>\/src\/App.vue<\/code> \u6587\u4ef6\u4e2d\uff0c\u628a\u5b83\u4f5c\u4e3aSVG\u7ec4\u4ef6\u5bfc\u5165\uff0c\u5e76\u7528<code>&lt;img class=&quot;logo&quot; \/&gt;<\/code>\u66ff\u6362\u5b83\u3002<\/p>\n<pre><code>&lt;script setup&gt;\n   ...\n   import LogoSVG from '.\/assets\/logo.svg?component'\n&lt;\/script&gt;\n&lt;template&gt;\n   ...\n   &lt;LogoSVG alt=&quot;Vite logo&quot; class=&quot;logo&quot; \/&gt;\n   ...\n&lt;\/template&gt;<\/code><\/pre>\n<p>\u81f3\u6b64\uff0c\u4e00\u4e2a\u7b80\u5355\u7684\u6a21\u677f\u6846\u67b6\u5c31\u642d\u5efa\u5b8c\u5566\u3002<\/p>\n<h2>\u4e0b\u4e00\u6b65\u662f\u4ec0\u4e48\uff1f<\/h2>\n<p>\u4f60\u53ef\u4ee5\u5c06\u5b83\uff0c\u53d1\u5e03\u5230 npm \u4e0a\uff0c\u7136\u540e\u53ef\u4ee5\u7c7b\u4f3c\u7684\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<pre><code>npm i @richardecom\/vue3-boilerplate<\/code><\/pre>\n<p>\u4e0b\u9762\u8fd8\u6709\u4efd\u6e05\u5355\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u6027\u6dfb\u52a0\u8fdb\u53bb\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=9DWu%2FD%2Bc%2BUBcUorr2%2BK2ew%3D%3D.UVe9WCCxToZF4uMT4cgXBhJ77S1hLcIlN1jXIWlXCOs%3D\" rel=\"nofollow\">NuxtJS<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=4bD6KgH1omW7wNxqJwpYNg%3D%3D.gEA3Goqt5mSgt3Ac4gHVo%2BBL5Gxa5rHGSgH6dp1DDrc%3D\" rel=\"nofollow\">Vue Meta <\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=1kHVDAoM1KdRsQhanfsnfA%3D%3D.E%2BmmA%2FrDaq9O1Qugl8gcUV6X38s2UAoVvS2gHjw79NMYY8cGpKg6%2FZAOUtcqRh4%2B\" rel=\"nofollow\">VeeValidate <\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=OyCxvlpF6kfQ5jKsAQc%2FYg%3D%3D.8HB%2FcsX6d7gxQqK5TPEteRyLLhZF8YE4SIZdKOg8UnP9AIu%2BkD99uhhBT%2ByIj31o\" rel=\"nofollow\"> Vue Toastification<\/a><\/li>\n<\/ul>\n<p><strong>\u7f16\u8f91\u4e2d\u53ef\u80fd\u5b58\u5728\u7684bug\u6ca1\u6cd5\u5b9e\u65f6\u77e5\u9053\uff0c\u4e8b\u540e\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9bbug,\u82b1\u4e86\u5927\u91cf\u7684\u65f6\u95f4\u8fdb\u884clog \u8c03\u8bd5\uff0c\u8fd9\u8fb9\u987a\u4fbf\u7ed9\u5927\u5bb6\u63a8\u8350\u4e00\u4e2a\u597d\u7528\u7684BUG\u76d1\u63a7\u5de5\u5177 <a href=\"https:\/\/link.segmentfault.com\/?enc=aLbcgAJk62RmCtucgagHsw%3D%3D.%2Fga8Pi2zj0NRnrvRsF466nYL0J9lZMri5i9eUs4OIxu3T6fpwAOX8o%2Fk3UxwdZVO\" rel=\"nofollow\">Fundebug<\/a>\u3002<\/strong><\/p>\n<p>\u4f5c\u8005\uff1aAndy Chen \u8bd1\u8005\uff1a\u5c0f\u667a  \u6765\u6e90\uff1amedium<\/p>\n<p><a href=\"https:\/\/link.segmentfault.com\/?enc=W2trrNrGLc1REtRk9%2Bmf4g%3D%3D.3M%2BQHfFpfyAX%2FVKpxKbY%2FUMgpbJt3C7llBWssnobsCuHokdyU8bFCJgAX%2Bz8ZnENyIhMCyQnGEtCNyW%2B9T%2FhqQ%3D%3D\" rel=\"nofollow\">https:\/\/medium.com\/js-dojo\/cu&#8230;<\/a><\/p>\n<h3>\u4ea4\u6d41<\/h3>\n<blockquote>\n<p>\u6709\u68a6\u60f3\uff0c\u6709\u5e72\u8d27\uff0c\u5fae\u4fe1\u641c\u7d22 <strong>\u3010\u5927\u8fc1\u4e16\u754c\u3011<\/strong> \u5173\u6ce8\u8fd9\u4e2a\u5728\u51cc\u6668\u8fd8\u5728\u5237\u7897\u7684\u5237\u7897\u667a\u3002<\/p>\n<p>\u672c\u6587 GitHub  <a href=\"https:\/\/link.segmentfault.com\/?enc=waucRPqCGi%2F3HequZckLsg%3D%3D.lxkzxTnzkB2bwSQaI%2BMmGHfq4AYaIuUQLu6b8rHH6Al2HL2rgd75wxi9ho9AlEhu\" rel=\"nofollow\">https:\/\/github.com\/qq449245884\/xiaozhi<\/a> \u5df2\u6536\u5f55\uff0c\u6709\u4e00\u7ebf\u5927\u5382\u9762\u8bd5\u5b8c\u6574\u8003\u70b9\u3001\u8d44\u6599\u4ee5\u53ca\u6211\u7684\u7cfb\u5217\u6587\u7ae0\u3002<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000020353567?w=800&#038;h=400\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042290587\">https:\/\/segmentfault.com\/a\/1190000042290587<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u641c\u7d22 \u3010\u5927\u8fc1\u4e16\u754c\u3011, \u6211\u4f1a\u7b2c\u4e00\u65f6\u95f4\u548c\u4f60\u5206\u4eab\u524d\u7aef\u884c\u4e1a\u8d8b\u52bf\uff0c\u5b66\u4e60\u9014\u5f84\u7b49\u7b49\u3002\u672c\u6587 GitHub https:\/\/ [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006359","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006359"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006359\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}