{"id":6099,"date":"2020-05-06T19:34:46","date_gmt":"2020-05-06T11:34:46","guid":{"rendered":"https:\/\/www.lilichao.com\/?p=6099"},"modified":"2022-05-14T19:35:50","modified_gmt":"2022-05-14T11:35:50","slug":"javascript%e7%9a%84%e4%bd%9c%e7%94%a8%e5%9f%9f","status":"publish","type":"post","link":"https:\/\/lilichao.com\/?p=6099","title":{"rendered":"JavaScript\u7684\u4f5c\u7528\u57df"},"content":{"rendered":"\n<p>\u53d8\u91cf\u662f\u4efb\u4f55\u8bed\u8a00\u4e2d\u90fd\u4e0d\u53ef\u83b7\u53d6\u7684\u4e00\u4e2a\u4e1c\u897f\u3002\u65e0\u8bba\u4f60\u4f7f\u7528\u7684\u662f\u4f55\u79cd\u8bed\u8a00\uff0c\u6beb\u65e0\u7591\u95ee\u7684\u662f\u4e00\u5b9a\u4f1a\u4f7f\u7528\u5230\u975e\u5e38\u591a\u7684\u53d8\u91cf\u3002\u8fd9\u65f6\u5c31\u5b58\u5728\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u4e00\u4e2a\u53d8\u91cf\u53ef\u4ee5\u5728\u9875\u9762\u4e2d\u7684\u4f5c\u7528\u8303\u56f4\u5230\u5e95\u6709\u591a\u5927\uff1f\u6211\u521b\u5efa\u7684\u53d8\u91cf\u662f\u5426\u53ef\u4ee5\u5728\u4efb\u610f\u7684\u4f4d\u7f6e\u8bbf\u95ee\u5230\uff1f\u53d8\u91cf\u7684\u4f5c\u7528\u8303\u56f4\uff0c\u4e5f\u5c31\u662f\u53d8\u91cf\u7684\u4f5c\u7528\u57df\uff0c\u53d8\u91cf\u7684\u4f5c\u7528\u57df\u51b3\u5b9a\u4e86\u5b83\u53ef\u4ee5\u5728\u54ea\u4e9b\u4f4d\u7f6e\u88ab\u8bbf\u95ee\u5230\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5168\u5c40\u4f5c\u7528\u57df<\/h2>\n\n\n\n<p>\u5168\u5c40\u4f5c\u7528\u57df\u662f\u6574\u4e2aJS\u4e2d\u6700\u5927\u7684\u4f5c\u7528\u57df\uff0c\u6240\u6709\u7684\u76f4\u63a5\u5199\u5728script\u6807\u7b7e\u4e2d\u7684\u4ee3\u7801\u90fd\u4f4d\u4e8e\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\uff08\u4e0d\u5728\u4efb\u4f55\u7684\u5176\u4ed6\u4ee3\u7801\u5757\u4e2d\uff09\u3002\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u521b\u5efa\u7684\u53d8\u91cf\u53eb\u505a\u5168\u5c40\u53d8\u91cf\uff0c\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u521b\u5efa\u7684\u51fd\u6570\u5c5e\u4e8e\u5168\u5c40\u51fd\u6570\u3002\u5168\u5c40\u53d8\u91cf\u548c\u51fd\u6570\u53ef\u4ee5\u5728\u4efb\u610f\u7684\u4f4d\u7f6e\u88ab\u8bbf\u95ee\u5230\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>let a = 10&nbsp; <\/code><em><code>\/\/ \u5168\u5c40\u53d8\u91cf\n<\/code><\/em><code>let b = 'hello' <\/code><em><code>\/\/ \u5168\u5c40\u53d8\u91cf\n\n<\/code><\/em><code>function <\/code><em><code>fn<\/code><\/em><code>() { <\/code><em><code>\/\/ \u5168\u5c40\u51fd\u6570\n &nbsp; &nbsp; \/\/ \u7565...\n<\/code><\/em><code>}\n\n(function () {\n &nbsp; &nbsp; console.log(a, b)\n &nbsp; &nbsp; <\/code><em><code>fn<\/code><\/em><code>()\n})()\n\nconsole.log(a, b)&nbsp;<\/code><\/pre>\n\n\n\n<p>\u4e0a\u4f8b\u4e2d\uff0c\u53d8\u91cfa\u548c\u53d8\u91cfb\u4ee5\u53cafn\u51fd\u6570\u90fd\u76f4\u63a5\u5199\u5728\u4e86\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\uff0c\u6240\u4ee5a\u3001b\u548cfn\u90fd\u5c5e\u4e8e\u5168\u5c40\u53d8\u91cf\uff08\u51fd\u6570\uff09\u3002\u8fd9\u79cd\u5168\u5c40\u53d8\u91cf\u53ef\u4ee5\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u8bbf\u95ee\u4e5f\u53ef\u4ee5\u5728\u5176\u4ed6\u4f5c\u7528\u57df\u4e2d\u8bbf\u95ee\u5230\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5c40\u90e8\u4f5c\u7528\u57df<\/h2>\n\n\n\n<p>\u5728\u5168\u5c40\u4f5c\u7528\u57df\u5185\u90e8\u7684\u5c0f\u4f5c\u7528\u57df\u7edf\u7edf\u79f0\u4e3a\u5c40\u90e8\u4f5c\u7528\u57df\uff0c\u5c40\u90e8\u4f5c\u7528\u57df\u4e2d\u521b\u5efa\u7684\u53d8\u91cf\u548c\u51fd\u6570\u88ab\u79f0\u4e3a\u5c40\u90e8\u53d8\u91cf\uff08\u51fd\u6570\uff09\uff0c\u53ea\u80fd\u5728\u5185\u90e8\u8bbf\u95ee\u5230\uff0c\u5916\u90e8\u65e0\u6cd5\u8bbf\u95ee\u3002\u5c40\u90e8\u4f5c\u7528\u57df\u6709\u4e24\u79cd\uff1a\u4e00\u79cd\u53eb\u505a\u5757\u4f5c\u7528\u57df\uff0c\u4e00\u79cd\u53eb\u505a\u51fd\u6570\u4f5c\u7528\u57df\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5757\u4f5c\u7528\u57df<\/h3>\n\n\n\n<p>\u6bcf\u4e00\u4e2a\u4ee3\u7801\u5757\uff08{}\uff09\u90fd\u662f\u4e00\u4e2a\u5757\u4f5c\u7528\u57df\uff0c\u5757\u4f5c\u7528\u57df\u662f\u4e00\u79cd\u5c40\u90e8\u4f5c\u7528\u57df\u3002\u5757\u4f5c\u7528\u57df\u7684\u4ee3\u7801\u53ea\u80fd\u5728\u5757\u5185\u90e8\u8bbf\u95ee\uff0c\u65e0\u6cd5\u5728\u5916\u90e8\u8bbf\u95ee\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>{<\/code><em><code>\/\/ \u4ee3\u7801\u57571<\/code><\/em><code>\n &nbsp; &nbsp; let a = 10 <\/code><em><code>\/\/ \u5c40\u90e8\u53d8\u91cf\n &nbsp; &nbsp; <\/code><\/em><code>let b = 'hello' <\/code><em><code>\/\/ \u5c40\u90e8\u53d8\u91cf\n &nbsp; &nbsp; <\/code><\/em><code>{ <\/code><em><code>\/\/ \u4ee3\u7801\u57572<\/code><\/em><code>\n &nbsp; &nbsp; &nbsp; &nbsp; console.log(a, b) <\/code><em><code>\/\/ \u53ef\u4ee5\u5728\u5757\u5185\u90e8\u8bbf\u95ee\n &nbsp; &nbsp; <\/code><\/em><code>}\n }\n \n<\/code><em><code>\/\/ \u65e0\u6cd5\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u8bbf\u95ee\u5230\u5c40\u90e8\u53d8\u91cf\n<\/code><\/em><code>console.log(a, b) <\/code><em><code>\/\/ \u62a5\u9519 Uncaught ReferenceError: a is not defined<\/code><\/em><\/pre>\n\n\n\n<p>\u4e0a\u4f8b\u4e2d\uff0c\u53d8\u91cfa\u548cb\u58f0\u660e\u5728\u4e86{}\u5185\u90e8\uff0c\u6211\u4eec\u79f0\u4e3a\u4ee3\u7801\u57571\u3002\u5728\u4ee3\u7801\u57571\u4e2d\u4ee3\u7801\u5c31\u5728\u4e00\u4e2a\u5757\u4f5c\u7528\u57df\u4e2d\uff0c\u6240\u4ee5a\u548cb\u662f\u4e24\u4e2a\u5c40\u90e8\u53d8\u91cf\uff0c\u8fd9\u4e24\u4e2a\u5c40\u90e8\u53d8\u91cf\u53ea\u80fd\u5728\u4ee3\u7801\u57571\u4e2d\u88ab\u8bbf\u95ee\u3002\u53e6\u5916\u4ee3\u7801\u57572\u5c5e\u4e8e\u4ee3\u7801\u57571\u5185\u90e8\u7684\u4ee3\u7801\u5757\uff0c\u6240\u4ee5\u5728\u4ee3\u7801\u57572\u5185\u90e8\u53ef\u4ee5\u8bbf\u95ee\u5230\u4ee3\u7801\u57571\u4e2d\u5b9a\u4e49\u7684\u53d8\u91cf\uff0c\u4f46\u662f\u53cd\u8fc7\u6765\uff0c\u5982\u679c\u5728\u4ee3\u7801\u57572\u4e2d\u5b9a\u4e49\u4e86\u53d8\u91cf\uff0c\u65e0\u6cd5\u5728\u4ee3\u7801\u57571\u4e2d\u8bbf\u95ee\u3002\u6700\u540e\u4e00\u884c\uff0c\u6211\u4eec\u5c1d\u8bd5\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u8bbf\u95ee\u53d8\u91cfa\u548cb\uff0c\u6d4f\u89c8\u5668\u4f1a\u62a5\u9519\uff0c\u56e0\u4e3a\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u770b\u4e0d\u5230\u5c40\u90e8\u53d8\u91cf\u3002 <\/p>\n\n\n\n<p>\u7f16\u5199\u4ee3\u7801\u65f6\uff0cif\u8bed\u53e5\u3001switch\u8bed\u53e5\u7684\u4ee3\u7801\u5757\uff0cfor\u8bed\u53e5\u3001while\u8bed\u53e5\u7684\u5faa\u73af\u4f53\u90fd\u5c5e\u4e8e\u5757\u4f5c\u7528\u57df\u3002<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">\u53e6\u5916\u9700\u8981\u6ce8\u610f\uff0c\u5982\u679c\u4f60\u4f7f\u7528var\u5173\u952e\u5b57\u58f0\u660e\u53d8\u91cf\u662f\u6ca1\u6709\u5757\u4f5c\u7528\u57df\u8fd9\u4e00\u8bf4\u7684\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>{<br> &nbsp; &nbsp; var a = 10 <\/code><em><code>\/\/ var\u58f0\u660e\u7684\u53d8\u91cf\u6ca1\u6709\u5757\u4f5c\u7528\u57df<br> &nbsp; &nbsp; <\/code><\/em><code>var b = 'hello' <\/code><em><code>\/\/ var\u58f0\u660e\u7684\u53d8\u91cf\u6ca1\u6709\u5757\u4f5c\u7528\u57df<\/code><\/em><code><br> }<br> <br> console.log(a, b) <\/code><em><code>\/\/ var\u58f0\u660e\u7684\u53d8\u91cf\u6ca1\u6709\u5757\u4f5c\u7528\u57df \u53ef\u4ee5\u8bbf\u95ee<\/code><\/em><\/pre>\n\n\n\n<p>\u4e0a\u4f8b\u4ee3\u7801\u4e2d\uff0c\u53d8\u91cfa\u548cb\u90fd\u4f7f\u7528var\u5173\u952e\u5b57\u6765\u58f0\u660e\uff0c\u6ca1\u6709\u5757\u7ea7\u4f5c\u7528\u57df\u4e00\u8bf4\uff0c\u6240\u4ee5\u5b83\u5c5e\u4e8e\u5168\u5c40\u53d8\u91cf\uff0c\u53ef\u4ee5\u5728\u4efb\u610f\u4f4d\u7f6e\u8bbf\u95ee\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u51fd\u6570\u4f5c\u7528\u57df<\/h3>\n\n\n\n<p>\u51fd\u6570\u4f5c\u7528\u57df\u4e5f\u5c5e\u4e8e\u4e00\u79cd\u5c40\u90e8\u4f5c\u7528\u57df\uff0c\u6240\u6709\u7684\u5728\u51fd\u6570\u5185\u90e8\u7f16\u5199\u7684\u4ee3\u7801\u90fd\u5728\u51fd\u6570\u4f5c\u7528\u57df\u4e2d\u3002\u548c\u5757\u4f5c\u7528\u57df\u7c7b\u4f3c\uff0c\u51fd\u6570\u4f5c\u7528\u57df\u4e2d\u7684\u53d8\u91cf\u548c\u51fd\u6570\u53ea\u80fd\u5728\u5185\u90e8\u8bbf\u95ee\uff0c\u5728\u51fd\u6570\u5916\u90e8\u65e0\u6cd5\u8bbf\u95ee\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>function <\/code><em><code>fn<\/code><\/em><code>() {\n &nbsp; &nbsp; let a = 10\n &nbsp; &nbsp; let b = 20\n &nbsp; &nbsp; console.log(a, b) <\/code><em><code>\/\/ \u5c40\u90e8\u53d8\u91cf\uff0c\u5728\u51fd\u6570\u5185\u90e8\u53ef\u4ee5\u8bbf\u95ee\n <\/code><\/em><code>}<\/code>\n<code><em>fn() \/\/ \u8c03\u7528fn\u51fd\u6570\uff0c\u4f7f\u4ee3\u7801\u6267\u884c \n<\/em> \n<\/code><em><code>\/\/ \u5c40\u90e8\u53d8\u91cf\uff0c\u65e0\u6cd5\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u8bbf\u95ee\n<\/code><\/em><code>console.log(a, b) <\/code><em><code>\/\/ \u62a5\u9519 Uncaught ReferenceError: a is not defined<\/code><\/em><\/pre>\n\n\n\n<p>\u5728\u51fd\u6570\u4f5c\u7528\u57df\u4e2d\uff0c\u4f7f\u7528var\u5173\u952e\u5b57\u58f0\u660e\u7684\u53d8\u91cf\u7684\u4e5f\u662f\u5c40\u90e8\u53d8\u91cf\uff0c\u53ea\u80fd\u5728\u51fd\u6570\u5185\u90e8\u8bbf\u95ee\uff0c\u4f46\u662f\u5982\u679c\u58f0\u660e\u53d8\u91cf\u662f\u6ca1\u6709\u4f7f\u7528\u4efb\u4f55\u7684\u5173\u952e\u5b57\uff0c\u5219\u6b64\u65f6\u53d8\u91cf\u5c06\u4f1a\u81ea\u52a8\u53d8\u6210\u5168\u5c40\u53d8\u91cf\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>function <\/code><em><code>fn<\/code><\/em><code>() {\n &nbsp; &nbsp; a = 10 <\/code><em><code>\/\/ \u4e0d\u4f7f\u7528\u5173\u952e\u5b57\u58f0\u660e\uff0c\u53d8\u91cf\u6210\u4e3a\u5168\u5c40\u53d8\u91cf\n &nbsp; &nbsp; <\/code><\/em><code>b = 20\n &nbsp; &nbsp; console.log(a, b) \n }\n \n<\/code><em><code>fn<\/code><\/em><code>() <\/code><em><code>\/\/ \u8c03\u7528fn\u51fd\u6570\uff0c\u4f7f\u4ee3\u7801\u6267\u884c\n \n<\/code><\/em><code>console.log(a, b) <\/code><em><code>\/\/ \u5168\u5c40\u53d8\u91cf\u53ef\u4ee5\u8bbf\u95ee<\/code><\/em><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u4f73\u5b9e\u8df5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.\u5c3d\u91cf\u4e0d\u8981\u76f4\u63a5\u5728\u5168\u5c40\u4f5c\u7528\u57df\u4e2d\u7f16\u5199\u53d8\u91cf\u548c\u51fd\u6570<\/h3>\n\n\n\n<p>\u5168\u5c40\u4f5c\u7528\u57df\u53ef\u4ee5\u5728\u4efb\u610f\u4f4d\u7f6e\u8bbf\u95ee\u5230\uff0c\u5982\u679c\u76f4\u63a5\u5728\u5168\u5c40\u4f5c\u7528\u4e0e\u4e2d\u521b\u5efa\u53d8\u91cf\u548c\u51fd\u6570\uff0c\u5b83\u4eec\u53ef\u4ee5\u5728\u4efb\u610f\u7684\u4f4d\u7f6e\u88ab\u8bbf\u95ee\u5230\uff0c\u4f46\u4e0e\u6b64\u540c\u65f6\u4e5f\u4f1a\u5e26\u6765\u4e00\u4e2a\u95ee\u9898\uff0c\u53d8\u91cf\u548c\u51fd\u6570\u6709\u53ef\u80fd\u88ab\u610f\u5916\u7684\u4fee\u6539\u6216\u8986\u76d6\u3002\u5c24\u5176\u662f\u591a\u4eba\u5f00\u53d1\u65f6\u95ee\u9898\u4f1a\u66f4\u52a0\u660e\u663e\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u6211\u4eec\u521b\u5efa\u53d8\u91cf\u65f6\u9700\u8981\u5c06\u53d8\u91cf\u521b\u5efa\u5230\u4e00\u4e2a\u5c40\u90e8\u4f5c\u7528\u57df\u4e2d\uff0c\u800c\u4e0d\u8981\u521b\u5efa\u5728\u5168\u5c40\u4f5c\u7528\u57df\u3002\u4e3b\u8981\u5904\u7406\u65b9\u5f0f\u6709\u4e24\u79cd\uff0c\u7b2c\u4e00\u79cd\uff0c\u5c06\u53d8\u91cf\u5b9a\u4e49\u5728\u4e00\u4e2a\u7acb\u5373\u6267\u884c\u51fd\u6570\u5185\u90e8\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>(function () {\n &nbsp; &nbsp; let a = 10\n &nbsp; &nbsp; let b = 20\n &nbsp; &nbsp; <\/code><em><code>\/\/ \u7565...\n<\/code><\/em><code>})()<\/code><\/pre>\n\n\n\n<p>\u5728\u533f\u540d\u51fd\u6570\u5185\u90e8\u7684\u4ee3\u7801\u90fd\u5c5e\u4e8e\u5c40\u90e8\u4f5c\u7528\u57df\uff08\u51fd\u6570\u4f5c\u7528\u57df\uff09\u3002\u4e0d\u4f1a\u5bf9\u5168\u5c40\u4f5c\u7528\u57df\u4ea7\u751f\u5f71\u54cd\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u79cd\uff0c\u5c06\u53d8\u91cf\u548c\u51fd\u6570\u5b58\u50a8\u5230\u4e00\u4e2a\u5bf9\u8c61\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>const myTools = {<br> &nbsp; &nbsp; a:10,<br> &nbsp; &nbsp; b:'abc',<br> &nbsp; &nbsp; fn:function () {<br> &nbsp; &nbsp; &nbsp; &nbsp; <\/code><em><code>\/\/\u7565...<br> &nbsp; &nbsp; <\/code><\/em><code>}<br> }<\/code><\/pre>\n\n\n\n<p>\u5c06\u53d8\u91cf\u5b58\u50a8\u4e3a\u4e00\u4e2a\u5bf9\u8c61\u7684\u5c5e\u6027\uff0c\u5c06\u51fd\u6570\u5b58\u50a8\u4e3a\u5bf9\u8c61\u7684\u65b9\u6cd5\uff0c\u540c\u6837\u4e5f\u4e0d\u4f1a\u5bf9\u5168\u5c40\u4f5c\u7528\u57df\u4ea7\u751f\u5f71\u54cd\uff0c\u4f46\u662f\u8fd9\u79cd\u65b9\u5f0f\u4f9d\u7136\u4f1a\u521b\u5efa\u51fa\u4e00\u4e2a\u5168\u5c40\u53d8\u91cf\uff08\u5b58\u50a8\u53d8\u91cf\u7684\u5bf9\u8c61\uff09\uff0c\u6240\u4ee5\u591a\u4eba\u5f00\u53d1\u65f6\u4e00\u5b9a\u8981\u5206\u914d\u597d\u5bf9\u8c61\u540d\uff0c\u5343\u4e07\u4e0d\u8981\u51fa\u73b0\u91cd\u540d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u4f7f\u7528\u53d8\u91cf\u65f6\u4e00\u5b9a\u8981\u58f0\u660e<\/h3>\n\n\n\n<p>\u53d8\u91cf\u7684\u58f0\u660e\u6709\u4e09\u4e2a\u5173\u952e\u5b57let\u3001const\u548cvar\u3002\u4f7f\u7528\u53d8\u91cf\u65f6\u4e00\u5b9a\u8981\u5bf9\u5176\u8fdb\u884c\u58f0\u660e\uff0c\u5c24\u5176\u662f\u5728\u51fd\u6570\u4f5c\u7528\u57df\u4e2d\uff0c\u4e0d\u58f0\u660e\u76f4\u63a5\u4f7f\u7528\u4f1a\u5bfc\u81f4\u53d8\u91cf\u53d8\u6210\u5168\u5c40\u53d8\u91cf\uff0c\u5207\u8bb0\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u4f7f\u7528let\u548cconst\uff0c\u4e0d\u8981\u4f7f\u7528var<\/h3>\n\n\n\n<p>\u7531\u4e8evar\u5e76\u6ca1\u6709\u5757\u4f5c\u7528\u57df\uff0c\u5728\u5f00\u53d1\u65f6\u4f1a\u7ed9\u6211\u4eec\u5e26\u6765\u4e00\u4e9b\u4e0d\u4fbf\u3002\u6240\u4ee5\u7f16\u5199\u4ee3\u7801\u65f6\u4e0d\u8981\u4f7f\u7528var\u5173\u952e\u5b57\u800c\u8981\u4f7f\u7528let\u548cconst\u3002\u90a3\u4e48\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528let\uff0c\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528const\u5462\uff1f\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u57fa\u672c\u6570\u636e\u7c7b\u578b\u4f7f\u7528let\uff0c\u5bf9\u8c61\u548c\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528const\u3002\u4f46\u662f\u5b9e\u9645\u60c5\u51b5\u4f1a\u66f4\u52a0\u590d\u6742\u4e00\u4e9b\uff0c\u5982\u679c\u6682\u65f6\u4e0d\u4f1a\u533a\u5206\uff0c\u53ef\u4ee5\u5168\u90fd\u4f7f\u7528let\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53d8\u91cf\u662f\u4efb\u4f55\u8bed\u8a00\u4e2d\u90fd\u4e0d\u53ef\u83b7\u53d6\u7684\u4e00\u4e2a\u4e1c\u897f\u3002\u65e0\u8bba\u4f60\u4f7f\u7528\u7684\u662f\u4f55\u79cd\u8bed\u8a00\uff0c\u6beb\u65e0\u7591\u95ee\u7684\u662f\u4e00\u5b9a\u4f1a\u4f7f\u7528\u5230\u975e\u5e38\u591a\u7684\u53d8\u91cf\u3002\u8fd9\u65f6\u5c31\u5b58\u5728 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6045,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[241],"tags":[200,250,234],"_links":{"self":[{"href":"https:\/\/lilichao.com\/index.php?rest_route=\/wp\/v2\/posts\/6099"}],"collection":[{"href":"https:\/\/lilichao.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lilichao.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lilichao.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lilichao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6099"}],"version-history":[{"count":2,"href":"https:\/\/lilichao.com\/index.php?rest_route=\/wp\/v2\/posts\/6099\/revisions"}],"predecessor-version":[{"id":6101,"href":"https:\/\/lilichao.com\/index.php?rest_route=\/wp\/v2\/posts\/6099\/revisions\/6101"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lilichao.com\/index.php?rest_route=\/wp\/v2\/media\/6045"}],"wp:attachment":[{"href":"https:\/\/lilichao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lilichao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lilichao.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}