{"id":10020538,"date":"2024-12-23T10:05:51","date_gmt":"2024-12-23T02:05:51","guid":{"rendered":"https:\/\/itmax.cn\/?p=10020538"},"modified":"2024-12-23T10:05:51","modified_gmt":"2024-12-23T02:05:51","slug":"%e9%85%8d%e7%bd%aetypescript%ef%bc%9atsconfig-json%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10020538","title":{"rendered":"\u914d\u7f6eTypeScript\uff1atsconfig.json\u8be6\u89e3"},"content":{"rendered":"<p>\u4eca\u5929\u6211\u4eec\u8981\u6df1\u5165\u4e86\u89e3 TypeScript \u4e2d\u6700\u6838\u5fc3\u7684\u914d\u7f6e\u6587\u4ef6\u2014\u2014<strong><code>tsconfig.json<\/code><\/strong>\u3002\u5982\u679c\u4f60\u5df2\u7ecf\u5f00\u59cb\u5199 TypeScript \u4ee3\u7801\uff0c\u90a3\u4e48\u4f60\u53ef\u80fd\u5df2\u7ecf\u63a5\u89e6\u8fc7\u8fd9\u4e2a\u6587\u4ef6\u3002\u5b83\u662f TypeScript \u9879\u76ee\u4e2d\u5fc5\u4e0d\u53ef\u5c11\u7684\u4e00\u90e8\u5206\uff0c\u8d1f\u8d23\u63a7\u5236 TypeScript \u7f16\u8bd1\u5668\u7684\u884c\u4e3a\u3002<\/p>\n<p>\u4f46\u5982\u679c\u4f60\u5bf9\u5b83\u8fd8\u4e0d\u592a\u719f\u6089\uff0c\u6216\u8005\u53ea\u662f\u7b80\u5355\u5730\u5c06\u5b83\u5f53\u4f5c\u4e00\u4e2a\u81ea\u52a8\u751f\u6210\u7684\u6587\u4ef6\u4e22\u5728\u9879\u76ee\u91cc\uff0c\u90a3\u672c\u6587\u5c31\u80fd\u5e2e\u4f60\u66f4\u597d\u5730\u7406\u89e3\u5b83\u3002\u6211\u4eec\u5c06\u4e00\u6b65\u6b65\u89e3\u6790 <code>tsconfig.json<\/code> \u7684\u914d\u7f6e\u9879\uff0c\u5e2e\u52a9\u4f60\u5145\u5206\u638c\u63a7 TypeScript \u9879\u76ee\u7684\u6784\u5efa\u8fc7\u7a0b\u3002<\/p>\n<h3>4.1 \u4ec0\u4e48\u662f tsconfig.json\uff1f<\/h3>\n<p><code>tsconfig.json<\/code> \u662f TypeScript \u9879\u76ee\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5b9a\u4e49\u4e86 TypeScript \u7f16\u8bd1\u5668\u5982\u4f55\u5904\u7406\u9879\u76ee\u4e2d\u7684\u4ee3\u7801\u3002\u5b83\u4f4d\u4e8e\u9879\u76ee\u6839\u76ee\u5f55\uff0c\u5e76\u901a\u8fc7 JSON \u683c\u5f0f\u914d\u7f6e\u5404\u9879\u9009\u9879\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u628a <code>tsconfig.json<\/code> \u60f3\u8c61\u6210 TypeScript \u7f16\u8bd1\u5668\u7684\u201c\u63a7\u5236\u4e2d\u5fc3\u201d\uff0c\u5b83\u544a\u8bc9\u7f16\u8bd1\u5668\u54ea\u4e9b\u6587\u4ef6\u9700\u8981\u7f16\u8bd1\uff0c\u5982\u4f55\u8fdb\u884c\u7f16\u8bd1\uff0c\u4ee5\u53ca\u7f16\u8bd1\u540e\u8f93\u51fa\u7684\u6587\u4ef6\u5e94\u5f53\u653e\u5728\u54ea\u91cc\u3002<\/p>\n<h3>4.2 \u521b\u5efa tsconfig.json \u6587\u4ef6<\/h3>\n<p>\u5982\u679c\u4f60\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 TypeScript \u9879\u76ee\uff0c\u901a\u5e38\u4f1a\u4f7f\u7528 <code>tsc --init<\/code> \u547d\u4ee4\u6765\u751f\u6210 <code>tsconfig.json<\/code> \u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"bash\">tsc --init<\/code><\/pre>\n<p>\u8fd0\u884c\u8be5\u547d\u4ee4\u540e\uff0cTypeScript \u4f1a\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u81ea\u52a8\u751f\u6210\u4e00\u4e2a\u57fa\u672c\u7684 <code>tsconfig.json<\/code> \u6587\u4ef6\uff0c\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"json\">{\n  &quot;compilerOptions&quot;: {\n    &quot;target&quot;: &quot;es5&quot;,\n    &quot;module&quot;: &quot;commonjs&quot;,\n    &quot;strict&quot;: true,\n    &quot;esModuleInterop&quot;: true,\n    &quot;skipLibCheck&quot;: true,\n    &quot;forceConsistentCasingInFileNames&quot;: true\n  },\n  &quot;include&quot;: [\n    &quot;src\/**\/*&quot;\n  ]\n}<\/code><\/pre>\n<p>\u8fd9\u4e2a\u6587\u4ef6\u5305\u542b\u4e86\u4e00\u4e9b TypeScript \u7f16\u8bd1\u5668\u7684\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u4f1a\u8be6\u7ec6\u89e3\u91ca\u6bcf\u4e00\u9879\u7684\u4f5c\u7528\u3002<\/p>\n<h3>4.3 tsconfig.json \u6587\u4ef6\u7ed3\u6784<\/h3>\n<p><code>tsconfig.json<\/code> \u6587\u4ef6\u4e3b\u8981\u7531\u4e09\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a<\/p>\n<ol>\n<li><strong>compilerOptions<\/strong>\uff1a\u914d\u7f6e TypeScript \u7f16\u8bd1\u5668\u7684\u9009\u9879\uff0c\u63a7\u5236\u5982\u4f55\u7f16\u8bd1\u4ee3\u7801\u3002<\/li>\n<li><strong>include<\/strong>\uff1a\u6307\u5b9a\u54ea\u4e9b\u6587\u4ef6\u5e94\u8be5\u5305\u542b\u5728\u7f16\u8bd1\u4e2d\u3002<\/li>\n<li><strong>exclude<\/strong>\uff1a\u6307\u5b9a\u54ea\u4e9b\u6587\u4ef6\u5e94\u8be5\u4ece\u7f16\u8bd1\u4e2d\u6392\u9664\u3002<\/li>\n<li><strong>files<\/strong>\uff1a\u663e\u5f0f\u5217\u51fa\u9700\u8981\u7f16\u8bd1\u7684\u6587\u4ef6\u3002<\/li>\n<\/ol>\n<p>\u6211\u4eec\u4f1a\u9010\u4e00\u5206\u6790\u8fd9\u4e9b\u90e8\u5206\u7684\u5e38\u89c1\u914d\u7f6e\u9879\uff0c\u5e2e\u52a9\u4f60\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5b9a\u5236\u5316\u914d\u7f6e\u3002<\/p>\n<h3>4.4 compilerOptions \u8be6\u89e3<\/h3>\n<p><code>compilerOptions<\/code> \u662f <code>tsconfig.json<\/code> \u4e2d\u6700\u91cd\u8981\u7684\u90e8\u5206\uff0c\u91cc\u9762\u7684\u914d\u7f6e\u51b3\u5b9a\u4e86 TypeScript \u7f16\u8bd1\u5668\u5982\u4f55\u7f16\u8bd1\u4f60\u7684\u4ee3\u7801\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u914d\u7f6e\u9879\uff1a<\/p>\n<h4>4.4.1 target<\/h4>\n<p><code>target<\/code> \u914d\u7f6e\u9879\u6307\u5b9a\u7f16\u8bd1\u540e\u7684 JavaScript \u4ee3\u7801\u5e94\u4f7f\u7528\u54ea\u4e2a\u7248\u672c\u7684 ECMAScript \u6807\u51c6\u3002\u5b83\u51b3\u5b9a\u4e86 TypeScript \u4f1a\u5c06\u4ee3\u7801\u8f6c\u6362\u6210\u54ea\u4e2a\u7248\u672c\u7684 JavaScript\u3002\u5e38\u89c1\u7684\u9009\u9879\u6709\uff1a<\/p>\n<ul>\n<li><code>&quot;es3&quot;<\/code>\uff1a\u7f16\u8bd1\u4e3a ECMAScript 3\uff08\u6700\u65e9\u7684 JavaScript \u6807\u51c6\uff0c\u51e0\u4e4e\u6240\u6709\u6d4f\u89c8\u5668\u90fd\u652f\u6301\uff09\u3002<\/li>\n<li><code>&quot;es5&quot;<\/code>\uff1a\u7f16\u8bd1\u4e3a ECMAScript 5\uff08\u73b0\u5728\u652f\u6301\u7684\u6700\u5e7f\u6cdb\u7684\u6807\u51c6\uff09\u3002<\/li>\n<li><code>&quot;es6&quot;<\/code> \/ <code>&quot;es2015&quot;<\/code>\uff1a\u7f16\u8bd1\u4e3a ECMAScript 2015\uff08ES6\uff09\uff0c\u652f\u6301\u66f4\u73b0\u4ee3\u7684\u8bed\u6cd5\uff0c\u5982 <code>class<\/code>\u3001<code>let<\/code>\u3001<code>const<\/code> \u7b49\u3002<\/li>\n<li><code>&quot;esnext&quot;<\/code>\uff1a\u7f16\u8bd1\u4e3a\u6700\u65b0\u7684 ECMAScript \u6807\u51c6\uff0c\u652f\u6301\u6700\u524d\u6cbf\u7684\u8bed\u8a00\u7279\u6027\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u5c06 TypeScript \u7f16\u8bd1\u4e3a ECMAScript 6\uff0c\u53ef\u4ee5\u8fd9\u4e48\u5199\uff1a<\/p>\n<pre><code class=\"json\">&quot;target&quot;: &quot;es6&quot;<\/code><\/pre>\n<h4>4.4.2 module<\/h4>\n<p><code>module<\/code> \u914d\u7f6e\u9879\u6307\u5b9a\u4e86 TypeScript \u7f16\u8bd1\u5668\u5982\u4f55\u5904\u7406\u6a21\u5757\u5316\u4ee3\u7801\u3002TypeScript \u652f\u6301\u51e0\u79cd\u6a21\u5757\u5316\u7cfb\u7edf\uff0c\u6700\u5e38\u7528\u7684\u6709\uff1a<\/p>\n<ul>\n<li><code>&quot;commonjs&quot;<\/code>\uff1a\u9002\u7528\u4e8e Node.js \u73af\u5883\u3002<\/li>\n<li><code>&quot;es6&quot;<\/code>\uff1a\u4f7f\u7528 ECMAScript 6 \u7684\u6a21\u5757\u5316\u8bed\u6cd5\u3002<\/li>\n<li><code>&quot;amd&quot;<\/code>\uff1a\u9002\u7528\u4e8e\u6d4f\u89c8\u5668\u4e2d\u7684\u6a21\u5757\u52a0\u8f7d\u3002<\/li>\n<li><code>&quot;system&quot;<\/code>\uff1a\u9002\u7528\u4e8e SystemJS \u6a21\u5757\u52a0\u8f7d\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u5728\u4e00\u4e2a Node.js \u9879\u76ee\u4e2d\u4f7f\u7528 TypeScript\uff0c\u53ef\u4ee5\u5c06 <code>module<\/code> \u8bbe\u7f6e\u4e3a <code>&quot;commonjs&quot;<\/code>\uff1a<\/p>\n<pre><code class=\"json\">&quot;module&quot;: &quot;commonjs&quot;<\/code><\/pre>\n<h4>4.4.3 strict<\/h4>\n<p><code>strict<\/code> \u914d\u7f6e\u9879\u5f00\u542f\u4e86\u4e00\u7cfb\u5217\u4e25\u683c\u7684\u7c7b\u578b\u68c0\u67e5\u9009\u9879\u3002\u5b83\u662f\u4e00\u79cd\u65b9\u4fbf\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u786e\u4fdd TypeScript \u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u4e25\u683c\u68c0\u67e5\u7c7b\u578b\u5b89\u5168\u3002\u5982\u679c\u4f60\u5e0c\u671b TypeScript \u63d0\u4f9b\u5c3d\u53ef\u80fd\u4e25\u683c\u7684\u7c7b\u578b\u68c0\u67e5\uff0c\u53ef\u4ee5\u5f00\u542f\u6b64\u9009\u9879\uff1a<\/p>\n<pre><code class=\"json\">&quot;strict&quot;: true<\/code><\/pre>\n<p>\u542f\u7528 <code>strict<\/code> \u540e\uff0cTypeScript \u4f1a\u9ed8\u8ba4\u5f00\u542f\u4ee5\u4e0b\u51e0\u4e2a\u91cd\u8981\u7684\u68c0\u67e5\u9879\uff1a<\/p>\n<ul>\n<li><code>noImplicitAny<\/code>\uff1a\u9632\u6b62\u9690\u5f0f <code>any<\/code> \u7c7b\u578b\u3002<\/li>\n<li><code>strictNullChecks<\/code>\uff1a\u786e\u4fdd\u4e25\u683c\u533a\u5206 <code>null<\/code> \u548c <code>undefined<\/code>\u3002<\/li>\n<li><code>strictFunctionTypes<\/code>\uff1a\u786e\u4fdd\u51fd\u6570\u7c7b\u578b\u7684\u4e25\u683c\u5339\u914d\u3002<\/li>\n<\/ul>\n<h4>4.4.4 esModuleInterop<\/h4>\n<p><code>esModuleInterop<\/code> \u9009\u9879\u4f7f\u5f97 TypeScript \u652f\u6301\u5728\u7f16\u8bd1\u65f6\u5bfc\u5165 CommonJS \u6a21\u5757\uff0c\u6a21\u62df ECMAScript \u6a21\u5757\u7684\u884c\u4e3a\u3002\u8fd9\u5bf9\u4e8e\u4e00\u4e9b\u8001\u7684\u5e93\u548c\u6a21\u5757\u975e\u5e38\u6709\u7528\u3002\u542f\u7528\u5b83\u540e\uff0c\u4f60\u53ef\u4ee5\u50cf\u5bfc\u5165 ES6 \u6a21\u5757\u4e00\u6837\u5bfc\u5165 CommonJS \u6a21\u5757\uff1a<\/p>\n<pre><code class=\"json\">&quot;esModuleInterop&quot;: true<\/code><\/pre>\n<h4>4.4.5 skipLibCheck<\/h4>\n<p><code>skipLibCheck<\/code> \u914d\u7f6e\u9879\u7528\u4e8e\u8df3\u8fc7\u5e93\u6587\u4ef6\u7684\u7c7b\u578b\u68c0\u67e5\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cTypeScript \u4f1a\u68c0\u67e5\u6240\u6709\u4f9d\u8d56\u9879\u7684\u7c7b\u578b\u58f0\u660e\u6587\u4ef6\uff08<code>*.d.ts<\/code>\uff09\uff0c\u4f46\u662f\u5982\u679c\u4f60\u7684\u9879\u76ee\u4f9d\u8d56\u4e86\u5f88\u591a\u5916\u90e8\u5e93\uff0c\u5f00\u542f\u6b64\u9009\u9879\u53ef\u4ee5\u63d0\u9ad8\u7f16\u8bd1\u901f\u5ea6\uff1a<\/p>\n<pre><code class=\"json\">&quot;skipLibCheck&quot;: true<\/code><\/pre>\n<h4>4.4.6 forceConsistentCasingInFileNames<\/h4>\n<p>\u8fd9\u4e2a\u9009\u9879\u786e\u4fdd\u6587\u4ef6\u540d\u7684\u5927\u5c0f\u5199\u4e00\u81f4\uff0c\u907f\u514d\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u51fa\u73b0\u4e0d\u540c\u7684\u884c\u4e3a\u3002\u5982\u679c\u4f60\u7684\u9879\u76ee\u4e2d\u6709\u8de8\u5e73\u53f0\u5f00\u53d1\uff0c\u5efa\u8bae\u5f00\u542f\u8fd9\u4e2a\u9009\u9879\uff1a<\/p>\n<pre><code class=\"json\">&quot;forceConsistentCasingInFileNames&quot;: true<\/code><\/pre>\n<h3>4.5 include\u3001exclude \u548c files<\/h3>\n<p>\u9664\u4e86 <code>compilerOptions<\/code>\uff0c<code>tsconfig.json<\/code> \u8fd8\u5141\u8bb8\u4f60\u6307\u5b9a\u7f16\u8bd1\u7684\u6587\u4ef6\u8303\u56f4\u3002\u8fd9\u4e9b\u914d\u7f6e\u9879\u51b3\u5b9a\u4e86\u54ea\u4e9b\u6587\u4ef6\u4f1a\u88ab TypeScript \u7f16\u8bd1\uff0c\u54ea\u4e9b\u6587\u4ef6\u4f1a\u88ab\u6392\u9664\u3002<\/p>\n<h4>4.5.1 include<\/h4>\n<p><code>include<\/code> \u7528\u4e8e\u6307\u5b9a\u54ea\u4e9b\u6587\u4ef6\u6216\u76ee\u5f55\u9700\u8981\u88ab\u5305\u542b\u5230\u7f16\u8bd1\u4e2d\u3002\u901a\u5e38\uff0c\u4f60\u4f1a\u5c06\u6e90\u4ee3\u7801\u76ee\u5f55\uff08\u5982 <code>src<\/code>\uff09\u5217\u5728\u8fd9\u91cc\uff1a<\/p>\n<pre><code class=\"json\">&quot;include&quot;: [\n  &quot;src\/**\/*&quot;\n]<\/code><\/pre>\n<p>\u8fd9\u8868\u793a\u7f16\u8bd1\u5668\u4f1a\u5c06 <code>src<\/code> \u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\uff08\u5305\u62ec\u5b50\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff09\u90fd\u5305\u542b\u5728\u7f16\u8bd1\u4e2d\u3002<\/p>\n<h4>4.5.2 exclude<\/h4>\n<p><code>exclude<\/code> \u7528\u4e8e\u6392\u9664\u4e0d\u9700\u8981\u7f16\u8bd1\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u80fd\u4e0d\u60f3\u7f16\u8bd1\u6d4b\u8bd5\u6587\u4ef6\u6216\u8005\u6784\u5efa\u4ea7\u7269\u6587\u4ef6\u5939\uff08\u5982 <code>node_modules<\/code>\uff09\uff1a<\/p>\n<pre><code class=\"json\">&quot;exclude&quot;: [\n  &quot;node_modules&quot;,\n  &quot;dist&quot;\n]<\/code><\/pre>\n<p>\u8fd9\u8868\u793a\u7f16\u8bd1\u5668\u4f1a\u5ffd\u7565 <code>node_modules<\/code> \u548c <code>dist<\/code> \u76ee\u5f55\u3002<\/p>\n<h4>4.5.3 files<\/h4>\n<p><code>files<\/code> \u662f\u4e00\u4e2a\u663e\u5f0f\u5217\u51fa\u9700\u8981\u7f16\u8bd1\u7684\u6587\u4ef6\u5217\u8868\u3002\u901a\u5e38\uff0c\u6211\u4eec\u4f7f\u7528 <code>include<\/code> \u548c <code>exclude<\/code> \u6765\u7ba1\u7406\u6587\u4ef6\u8303\u56f4\uff0c\u4f46\u5982\u679c\u4f60\u9700\u8981\u7cbe\u786e\u63a7\u5236\u7f16\u8bd1\u54ea\u4e9b\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>files<\/code>\uff1a<\/p>\n<pre><code class=\"json\">&quot;files&quot;: [\n  &quot;src\/index.ts&quot;,\n  &quot;src\/app.ts&quot;\n]<\/code><\/pre>\n<h3>4.6 \u5c0f\u7ed3\uff1a\u7075\u6d3b\u914d\u7f6e TypeScript \u7f16\u8bd1\u5668<\/h3>\n<p>\u4eca\u5929\u6211\u4eec\u6df1\u5165\u63a2\u8ba8\u4e86 <code>tsconfig.json<\/code> \u6587\u4ef6\u7684\u914d\u7f6e\uff0c\u4e86\u89e3\u4e86\u5b83\u5982\u4f55\u63a7\u5236 TypeScript \u7f16\u8bd1\u5668\u7684\u884c\u4e3a\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u7684\u9700\u8981\uff0c\u7075\u6d3b\u8c03\u6574 <code>compilerOptions<\/code>\u3001<code>include<\/code>\u3001<code>exclude<\/code> \u7b49\u914d\u7f6e\u9879\uff0c\u4ee5\u786e\u4fdd TypeScript \u7f16\u8bd1\u5668\u6309\u7167\u4f60\u5e0c\u671b\u7684\u65b9\u5f0f\u8fd0\u884c\u3002<\/p>\n<p>\u7406\u89e3 <code>tsconfig.json<\/code> \u7684\u914d\u7f6e\u9879\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u63a7\u5236 TypeScript \u9879\u76ee\u7684\u6784\u5efa\u6d41\u7a0b\uff0c\u907f\u514d\u4e00\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\uff0c\u5e76\u63d0\u5347\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<p>\u540e\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd TypeScript \u4e2d\u7684\u6a21\u5757\u5316\u5f00\u53d1\uff0c\u8bb2\u89e3\u5982\u4f55\u5728\u9879\u76ee\u4e2d\u6b63\u786e\u5730\u7ec4\u7ec7\u4ee3\u7801\u548c\u4f7f\u7528\u6a21\u5757\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000045668688\">https:\/\/segmentfault.com\/a\/1190000045668688<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6211\u4eec\u8981\u6df1\u5165\u4e86\u89e3 TypeScript \u4e2d\u6700\u6838\u5fc3\u7684\u914d\u7f6e\u6587\u4ef6\u2014\u2014tsconfig.json\u3002\u5982\u679c\u4f60\u5df2\u7ecf\u5f00\u59cb\u5199  [&hellip;]<\/p>\n","protected":false},"author":7,"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-10020538","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\/10020538","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10020538"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020538\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10020538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10020538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10020538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}