{"id":10008180,"date":"2023-08-28T15:01:38","date_gmt":"2023-08-28T07:01:38","guid":{"rendered":"https:\/\/blog.itmax.cn\/?p=10008180"},"modified":"2023-08-28T15:01:38","modified_gmt":"2023-08-28T07:01:38","slug":"%e6%95%88%e8%83%bd%e5%b7%a5%e5%85%b7%e4%b9%8bnode%e5%9c%a8%e9%a1%b9%e7%9b%ae%e4%b8%ad%e7%9a%84%e5%ba%94%e7%94%a8%ef%bc%88%e4%b8%80%ef%bc%89","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008180","title":{"rendered":"\u6548\u80fd\u5de5\u5177\u4e4bnode\u5728\u9879\u76ee\u4e2d\u7684\u5e94\u7528\uff08\u4e00\uff09"},"content":{"rendered":"<h2>\u95ee\u9898\u63cf\u8ff0<\/h2>\n<ul>\n<li>\u5e38\u8a00\u9053\uff0c\u654f\u6377\u5f00\u53d1&#8230;<\/li>\n<li>\u5982\u4f55\u53bb\u654f\u6377\u5f00\u53d1\u5462\uff1f\u9014\u5f84\u6709\u5f88\u591a\uff0c\u5176\u4e2d\u6709\u4e00\u79cd\u5c31\u662f\u53bb\u521b\u9020\u4e00\u4e9b\u201c\u5de5\u5177\u201d\uff0c\u4f7f\u7528\u5de5\u5177\u63d0\u5347\u5f00\u53d1\u6548\u7387<\/li>\n<li>\u6bd4\u5982\uff0c\u4ece\u6700\u65e9\u7684\u539f\u751f\u5199\u6cd5\u7684HTML\u3001CSS\u3001JS\uff0c\u5230\u540e\u6765\u7684JQuery\uff08\u5de5\u5177\uff09<\/li>\n<li>\u518d\u5230\u540e\u6765\u7684ANGUALR\u3001REACT\u3001VUE\u6846\u67b6\uff08\u5de5\u5177\uff09<\/li>\n<li>\u5305\u62ec\u4e00\u4e9bUI\u7ec4\u4ef6\u5e93\uff0cWEBPACK\u3001\u751a\u81f3\u662f\u4f4e\u4ee3\u7801\u5e73\u53f0\u90fd\u662f\u4e00\u79cd\u5de5\u5177<\/li>\n<li>\u672c\u8d28\u4e0a\uff0c\u5c31\u662f\u8ba9\u6211\u4eec\u5c11\u5199\u4ee3\u7801\uff0c\u4e5f\u80fd\u5b9e\u73b0\u60f3\u8981\u7684\u6548\u679c<\/li>\n<li>\u4eca\u5929\u7b14\u8005\u5c31\u7ed9\u5927\u5bb6\u629b\u7816\u5f15\u7389\u4e00\u4e0b\uff0c\u5e0c\u671b\u8bf8\u4f4d\u8bfb\u8005\uff0c\u8bfb\u5b8c\u4ee5\u540e\uff0c\u80fd\u591f\u6709\u6240\u601d\u8003<\/li>\n<\/ul>\n<h2>\u6848\u4f8b\u573a\u666f<\/h2>\n<h3>\u8868\u683c\u6848\u4f8b<\/h3>\n<p>\u6211\u4eec\u77e5\u9053\uff0c\u5f00\u53d1\u4e2d\u6bd4\u8f83\u5e38\u89c1\u7684\u5c31\u662f\u8868\u683c\u7684\u5c55\u793a\uff0c\u6bd4\u5982\u8fd9\u6837\u7684\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"251\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9qQe\" alt=\"\" title=\"\"><\/p>\n<p>\u6211\u4eec\u5e73\u5e38\u5f00\u53d1\u9879\u76ee\u7684\u65f6\u5019\uff0c\u5e38\u5e38\u4f1a\u628a\u8868\u683c\u8fdb\u884c\u4e8c\u6b21\u5c01\u88c5\uff0c\u901a\u8fc7JSON\u914d\u7f6e\u5316\u7684\u5f62\u5f0f\uff0c\u914d\u7f6e\u4e00\u4e0b\uff0c\u6307\u5b9a\u4e00\u4e9b\u53c2\u6570\u548c\u5b57\u6bb5\uff0c\u5c31\u80fd\u591f\u76f4\u63a5\u6e32\u67d3\u51fa\u6211\u4eec\u60f3\u8981\u7684\u6548\u679c\u4e86<\/p>\n<p>\u4ee3\u7801\u5927\u6982\u662f\u4e0b\u9762\u8fd9\u6837\u7684<\/p>\n<pre><code class=\"js\">[\n  {\n    &quot;propName&quot;: &quot;name&quot;,\n    &quot;labelName&quot;: &quot;\u59d3\u540d&quot;,\n    &quot;width&quot;: 90,\n    &quot;fixed&quot;: false,\n    &quot;isSort&quot;: false\n  },\n  {\n    &quot;propName&quot;: &quot;age&quot;,\n    &quot;labelName&quot;: &quot;\u5e74\u9f84&quot;,\n    &quot;width&quot;: 90,\n    &quot;fixed&quot;: false,\n    &quot;isSort&quot;: false\n  },\n  {\n    &quot;propName&quot;: &quot;home&quot;,\n    &quot;labelName&quot;: &quot;\u5bb6\u4e61&quot;,\n    &quot;width&quot;: 90,\n    &quot;fixed&quot;: false,\n    &quot;isSort&quot;: false\n  },\n  {\n    &quot;propName&quot;: &quot;remark&quot;,\n    &quot;labelName&quot;: &quot;\u5907\u6ce8&quot;,\n    &quot;width&quot;: 90,\n    &quot;fixed&quot;: false,\n    &quot;isSort&quot;: false\n  },\n]<\/code><\/pre>\n<ul>\n<li>\u5f00\u53d1\u4e2d\uff0c\u81ea\u7136\u662f\u590d\u5236\u7c98\u8d34\u5566\uff0c\u7136\u540e\u53bb\u4fee\u6539\u5176\u5bf9\u5e94\u7684\u952e\u503c\u5bf9\u7684\u503c<\/li>\n<li>\u90a3\u4e48\uff0c\u6211\u4eec\u80fd\u4e0d\u80fd\u81ea\u5df1\u641e\u4e00\u4e2a\u5de5\u5177\uff0c\u8ba9\u6211\u4eec\u5c11\u4e00\u4e9b\u590d\u5236\u7c98\u8d34\u5462\uff1f<\/li>\n<li>\u6709\u7684\u670b\u53cb\u95ee\u9053\uff0c\u8868\u683c\u53ea\u6709\u4e09\u4e94\u5217\uff0c\u7528\u5f97\u7740\uff0c\u8fd9\u4e48\u9ebb\u70e6\u5417\uff1f<\/li>\n<li>\u7b14\u8005\u611f\u53f9\uff0c\u7b14\u8005\u66fe\u9047\u5230\u6709100\u591a\u5217\u7684\u8868\u683c\u7684\u5c55\u793a\u9700\u6c42<\/li>\n<li>\u90a3\u603b\u4e0d\u80fd\u590d\u5236100\u591a\u6b21\u5427<\/li>\n<li>\u90a3\u600e\u4e48\u6837\u5c11\u70b9\u590d\u5236\u64cd\u4f5c\uff0c\u751a\u81f3\u80fd\u591f\u81ea\u52a8\u751f\u6210\u5462\uff1f<\/li>\n<\/ul>\n<h3>\u601d\u8def\u5206\u6790<\/h3>\n<ul>\n<li>\u6211\u4eec\u77e5\u9053\uff0c\u8868\u683c\u5c55\u793a\u7684\u5b57\u6bb5\u5565\u7684\uff0c\u6765\u81ea\u540e\u7aef\u5efa\u8868\u7684\u65f6\u5019\uff0c\u5b9a\u4e49\u7684\u5b57\u6bb5\u540d\u79f0<\/li>\n<li>\u6240\u4ee5\uff0c\u6e90\u5934\u5728\u54ea\u91cc\u5462\uff1f\u5c31\u5728\u6570\u636e\u5e93\u7684\u8868\u7684\u7ed3\u6784\u91cc\u9762\u554a<\/li>\n<li>\u6211\u4eec\u6253\u5f00\u6570\u636e\u5e93\uff0c\u8bbe\u8ba1\u8868\u3001\u67e5\u770b\u8868\u7ed3\u6784\uff0c\u662f\u80fd\u591f\u770b\u5230\u4ec0\u4e48\u5b57\u6bb5\uff0c\u4ee5\u53ca\u76f8\u5e94\u7684\u4fe1\u606f\u7684\uff0c\u5982\u4e0b\u56fe<\/li>\n<\/ul>\n<p><img decoding=\"async\" width=\"723\" height=\"217\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9qQf\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<blockquote><p>\u4ec0\u4e48\u5b57\u6bb5\u5bf9\u5e94\u4ec0\u4e48\u610f\u601d\uff0c\u6b63\u5e38\u6765\u8bf4\uff0c\u90fd\u4f1a\u5199\u5728\u5b57\u6bb5\u7684\u6ce8\u91ca\u91cc\u9762\u7684<\/p><\/blockquote>\n<ul>\n<li>\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e00\u4e2a\u5b57\u6bb5\uff0c\u6709\u4e00\u4e2a\u5b57\u6bb5\u7684\u6ce8\u91ca\uff0c\u76f8\u5bf9\u5e94\u7684\uff0c\u4e5f\u5c31\u662f<code>propName<\/code>\u548c<code>labelName<\/code><\/li>\n<li>\u90a3\u8fd9\u5c31\u597d\u529e\u4e86\uff0c\u6211\u4eec\u76f4\u63a5\u5bfc\u51fa\u8fd9\u4e2a\u8868\u7684\u7ed3\u6784\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u5bf9\u5e94\u5173\u7cfb\u4e86\uff0c\u5982\u4e0b\u64cd\u4f5c<\/li>\n<\/ul>\n<p><img decoding=\"async\" width=\"449\" height=\"573\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9qQg\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<ul>\n<li>\u5bfc\u51fa\u7684table.sql\u6587\u4ef6\u4ee3\u7801\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<pre><code class=\"sql\">\/*\n Navicat Premium Data Transfer\n\n Source Server         : lss\n Source Server Type    : MySQL\n Source Server Version : 50562\n Source Host           : localhost:3306\n Source Schema         : xiyouji\n\n Target Server Type    : MySQL\n Target Server Version : 50562\n File Encoding         : 65001\n\n Date: 14\/04\/2021 08:56:05\n*\/\n\nSET NAMES utf8mb4;\nSET FOREIGN_KEY_CHECKS = 0;\n\n-- ----------------------------\n-- Table structure for peopletable\n-- ----------------------------\nDROP TABLE IF EXISTS `peopletable`;\nCREATE TABLE `peopletable`  (\n  `id` int(13) NOT NULL AUTO_INCREMENT COMMENT '\u552f\u4e00id',\n  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '\u59d3\u540d',\n  `age` int(11) NULL DEFAULT NULL COMMENT '\u5e74\u9f84',\n  `home` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '\u5bb6\u4e61',\n  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '\u5907\u6ce8',\n  `is_delete_status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '1\u6b63\u5e38\u30010\u5220\u9664',\n  PRIMARY KEY (`id`) USING BTREE\n) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Compact;\n\nSET FOREIGN_KEY_CHECKS = 1;<\/code><\/pre>\n<ul>\n<li>\u6211\u4eec\u770b\u4e0a\u8ff0\u4ee3\u7801\uff0c\u5c31\u80fd\u660e\u767d\uff0c\u6211\u4eec\u60f3\u8981\u7684\u4e1c\u897f\uff0c\u4ece\u7b2c24\u884c\u5f00\u59cb\u523032\u884c\u7ed3\u675f\uff0c\u4e2d\u7684<code>CREATE TABLE<\/code>\u521b\u5efa\u8868\u683c\u7684\u5185\u5bb9\u7684\uff0c\u5bf9\u5e94\u5b57\u6bb5\u4ee5\u53ca\u6b64\u5b57\u6bb5\u7684\u6ce8\u91ca<code>COMMENT<\/code>\u7684\u540d\u5b57\uff0c\u7ed3\u675f\u7684<code>ENGINE = InnoDB AUTO_INCREMENT<\/code><\/li>\n<li>\u800c\uff0c\u6211\u4eec\u53c8\u77e5\u9053\uff0c\u6240\u8c13\u7684\u5bfc\u51fa\u7684<code>.sql\u6587\u4ef6<\/code>\u5176\u5185\u5bb9\u4e0d\u8fc7\u5c31\u662f\u4e00\u5806\u5b57\u7b26\u4e32\u7f62\u4e86\uff0c\u6bd5\u7adf\u6211\u4eec\u4f7f\u7528node\u7684\u6587\u4ef6\u8bfb\u53d6api\u80fd\u591f\u62ff\u5230\u5176\u5bf9\u5e94\u5b57\u7b26\u4e32\u5185\u5bb9\u3002\u5982\u4e0b<\/li>\n<\/ul>\n<pre><code class=\"js\">fs.readFile('.\/table.sql', 'utf-8', (err, data) =&gt; {\n    console.log('\u8bfb\u53d6\u5230\u7684\u5185\u5bb9\u662f\u5b57\u7b26\u4e32',data)\n})<\/code><\/pre>\n<ul>\n<li>\u6240\u4ee5\uff0c\u5f53\u6211\u4eec\u62ff\u5230\u4e86\u5b57\u7b26\u4e32\u4ee5\u540e\uff0c\u5c31\u53ef\u4ee5\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u201c\u52a0\u5de5\u201d\uff0c\u6bd4\u5982\u627e\u5230\u5bf9\u5e94\u5173\u952e\u5b57\u3001\u8fdb\u884c\u63d0\u53d6\u3001\u622a\u53d6\u3001\u5206\u79bb\u3001\u52a0\u5de5\u7ec4\u88c5\u6210\u6211\u4eec\u6240\u9700\u8981\u7684JSON\u6570\u7ec4\u683c\u5f0f<\/li>\n<li>\u81f3\u4e8e\u600e\u4e48\u52a0\u5de5\u7684\uff0c\u7b14\u8005\u7ed9\u5927\u5bb6\u63d0\u4f9b\u4e86\uff0c\u4e00\u4e9b\u4ee3\u7801\uff0c\u4ee5\u4f9b\u53c2\u8003<\/li>\n<\/ul>\n<pre><code class=\"js\">const fs = require('fs');\n\nlet tableHeader = []\n\n\/\/ \u5224\u65ad\u662f\u4e0d\u662f\u5927\u5199\u5b57\u6bcd\nfunction isUpLetter(str) {\n    var strCode = str.charCodeAt()\n    return strCode &gt;= 65 &amp;&amp; strCode &lt;= 90\n}\n\/\/ \u52a8\u6001\u5f80\u4e0a\u8d70\u83b7\u53d6\u6bcf\u884c\u6570\u636e\u7684\u7b2c\u4e00\u4e2a\u5b57\uff0ci\u53d8\u91cf\uff0carticalArr\u548cend\u5e38\u91cf\nfunction getLineFirstWord(articalArr, i, end) {\n    let lineWords = articalArr[end - i].trim()\n    return lineWords[0]\n}\n\/\/ \u627e\u5230\u5b57\u6bb5\u8303\u56f4\u7ed3\u675f\u884c\uff08\u5f00\u59cb\u884c\u597d\u627e\uff0c\u7ed3\u675f\u884c\u6807\u8bc6\u4e3aENGINE\u5373end\u5f80\u4e0a\u627e\uff09\nfunction findPropEndLine(articalArr, end) {\n    let i = 1 \/\/ \u521d\u59cb\u4e3a1\uff0c\u5c31\u8981\u5f80\u4e0a\u627e\u4e00\u884c\n    while (isUpLetter(getLineFirstWord(articalArr, i, end))) { \/\/ \u5982\u679c\u662f\u5927\u5199\u7684\u5b57\u6bcd\uff0c\u5c31\u7ee7\u7eed\u5f80\u4e0a\u627e\n        i = i + 1 \/\/ \u76f4\u5230\u4e0d\u662f\u5927\u5199\u5b57\u6bcd\uff0c\u5c31\u8bf4\u660e\u627e\u5230\u7ed3\u675f\u884c\u4f4d\u7f6e\u4e86\n    }\n    return end - i\n}\n\/\/ \u86c7\u5f62\u8f6c\u9a7c\u5cf0\nfunction hump(str) {\n    if (!str.includes('_')) return str\n    let s = &quot;&quot;\n    for (let i = 0; i &lt; str.length; i++) {\n        if (str[i] == &quot;_&quot;) {\n            s = s + str[i + 1].toUpperCase()\n            i = i + 1\n        } else {\n            s = s + str[i]\n        }\n    }\n    return s\n}\n\/\/ \u622a\u53d6prop\nfunction getPropName(str) {\n    let l = str.indexOf('`')\n    let r = str.lastIndexOf('`')\n    let resStr = str.slice(l + 1, r)\n    return hump(resStr)\n}\n\/\/ \u622a\u53d6label\nfunction getLabelName(str) {\n    let l = str.indexOf('\/'')\n    let r = str.lastIndexOf('\/'')\n    return str.slice(l + 1, r)\n}\n\/\/ \u5bfc\u51faJSON\u6587\u4ef6\nfunction exportJSON(tableHeader) {\n    fs.writeFile('tableHeader.json', tableHeader, (err) =&gt; {\n        if (err) {\n            console.log(`\u5931\u8d25\u4e86${err}`)\n        }\n        console.log('tableHeader\u5bfc\u51fa\u6210\u529f');\n    })\n}\n\/\/ \u8bfb\u53d6sql\u6587\u4ef6\u5e76\u52a0\u5de5\u6210\u524d\u7aef\u9700\u8981\u7684\u683c\u5f0f\nfs.readFile('.\/table.sql', 'utf-8', (err, data) =&gt; {\n    let articalArr = data.split('\/n') \/\/ \u4f7f\u7528\u6362\u884c\u7b26\u5206\u9694\u6210\u6570\u7ec4\n    let startLineIndex; \/\/ \u5f00\u59cb\u884c\u7d22\u5f15\n    let end; \/\/ end\u6807\u8bc6\u627e\u5230\u7ed3\u675f\u4f4d\u7f6e\uff08\u7ed3\u675f\u4f4d\u7f6e\u518d\u5f80\u4e0a\u8d70\u51e0\u884c\u624d\u662fprop\u3001label\u7ed3\u675f\u4f4d\u7f6e\uff09\n    articalArr.forEach((item, index) =&gt; {\n        if (item.includes('CREATE TABLE')) {\n            startLineIndex = index\n        }\n        if (item.includes('ENGINE')) {\n            end = index\n        }\n    })\n    startLineIndex = startLineIndex + 1 \/\/ \u6b64\u884c\u5305\u542bCREATE TABLE\uff0c\u518d\u4e0b\u4e00\u884c\u624d\u662f\u771f\u6b63prop\u3001label\u6570\u636e\n    let endLineIndex = findPropEndLine(articalArr, end) \/\/ end\u6807\u8bc6\u4e0d\u505c\u5f80\u4e0a\u8d70\uff0c\u76f4\u5230\u4e0d\u662f\u5927\u5199\u5b57\u6bcd\n    const propLabelArr = articalArr.slice(startLineIndex, endLineIndex + 1) \/\/ \u622a\u53d6\u771f\u6b63\u4f7f\u7528\u8303\u56f4\n    \/**\n     * \u904d\u5386\u62ff\u5230prop\u548clabel\uff0c\u8fd9\u624d\u662f\u771f\u6b63\u7684\u524d\u7aef\u8868\u5934\u9700\u8981\u7684\u6570\u636e\u503c\n     * *\/\n    for (const item of propLabelArr) {\n        let tableHeaderItem = {\n            propName: getPropName(item),\n            labelName: getLabelName(item),\n            width: 90, \/\/ \u5b9a\u4e49\u9ed8\u8ba4\u503c\n            fixed: false, \/\/ \u5b9a\u4e49\u9ed8\u8ba4\u503c\n        }\n        tableHeader.push(tableHeaderItem)\n    }\n    \/\/ \u63a7\u5236\u53f0\u8f93\u51fa\u590d\u5236\u7c98\u8d34\u4f7f\u7528\n    console.log(tableHeader);\n    \/\/ \u5bfc\u51fa\u6210json\u6587\u4ef6\u4f7f\u7528\n    exportJSON(JSON.stringify(tableHeader))\n});<\/code><\/pre>\n<ul>\n<li>\u4f7f\u7528\u7684\u8bdd\uff0c\u5982\u4e0b\u56fe\uff1a<\/li>\n<\/ul>\n<p><img decoding=\"async\" width=\"723\" height=\"418\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9qQh\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u5b9e\u9645\u793a\u4f8b<\/h3>\n<ul>\n<li>\u4e3a\u4e86\u66f4\u4fbf\u4e8e\u5927\u5bb6\u6f14\u793a\uff0c\u7b14\u8005\u5199\u4e86\u9875\u9762\u548c\u63a5\u53e3\uff0c\u4f9b\u5927\u5bb6\u770b\u66f4\u76f4\u63a5\u7684\u6548\u679c<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=O9XOxeDRQw9YT9jBd8W3wA%3D%3D.Ph%2FRACoq10vDo6R8sAAIYF8et8tDxFtN7mkFQtyfUWY%3D\" rel=\"noopener noreferrer\">http:\/\/ashuai.work\/sql<\/a><\/li>\n<li>\u8bbf\u95ee\u5730\u5740\u540e\uff0c\u5982\u4e0b\u56fe\u64cd\u4f5c\u5373\u53ef<\/li>\n<\/ul>\n<p><img decoding=\"async\" width=\"723\" height=\"643\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9qQi\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u81f3\u6b64\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6839\u636e\u6570\u636e\u5e93\u4e2d\u7684\u8868\u683c\u5b57\u6bb5\uff0c\u751f\u6210\u8868\u683c\u5b57\u6bb5\uff0c\u5047\u8bbe\u4e00\u4e24\u767e\u5217\u5f88\u591a\u5b57\u6bb5\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4f1a\u4e0d\u4f1a\u51cf\u8f7b\u4e00\u4e0b\u5de5\u4f5c\u91cf\u5462\uff1f<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<ul>\n<li>\u5f88\u591a\u65f6\u5019\uff0c\u601d\u8def\u6bd4\u4ee3\u7801\u66f4\u91cd\u8981&#8230;<\/li>\n<li>\u5e0c\u671b\u672c\u7bc7\u6587\u7ae0\uff0c\u80fd\u62d3\u5c55\u4e00\u4e0b\u5927\u5bb6\u7684\u601d\u8def<\/li>\n<\/ul>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044154801\">https:\/\/segmentfault.com\/a\/1190000044154801<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0 \u5e38\u8a00\u9053\uff0c\u654f\u6377\u5f00\u53d1&#8230; \u5982\u4f55\u53bb\u654f\u6377\u5f00\u53d1\u5462\uff1f\u9014\u5f84\u6709\u5f88\u591a\uff0c\u5176\u4e2d\u6709\u4e00\u79cd\u5c31\u662f\u53bb\u521b\u9020\u4e00\u4e9b\u201c\u5de5\u5177\u201d\uff0c\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008180","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008180","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"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008180"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008180\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}