{"id":29363,"date":"2024-11-25T09:35:00","date_gmt":"2024-11-25T01:35:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29363\/"},"modified":"2024-11-25T09:35:00","modified_gmt":"2024-11-25T01:35:00","slug":"es6%e6%96%b0%e7%89%b9%e6%80%a7%e5%bc%80%e5%8f%91%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%ef%bc%881%ef%bc%89","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29363\/","title":{"rendered":"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09"},"content":{"rendered":"<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">ECMAScript 6(\u7b80\u79f0ES6)\u662fJavaScript\u8bed\u8a00\u7684\u6700\u65b0\u6807\u51c6\u3002\u56e0\u4e3a\u5f53\u524d\u7248\u672c\u7684ES6\u662f\u57282015\u5e74\u53d1\u5e03\u7684\uff0c\u6240\u4ee5\u53c8\u79f0ECMAScript 2015\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u652f\u6301\u7edd\u5927\u90e8\u5206ES6\u7684\u65b0\u589e\u7279\u6027\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Constants(\u5e38\u91cf)<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">ES6\u65b0\u589e\u4e86const\u5173\u952e\u5b57\uff0c\u7528\u6765\u58f0\u660e\u5e38\u91cf\uff0c\u4e00\u65e6\u58f0\u660e\uff0c\u5e38\u91cf\u7684\u503c\u5c31\u4e0d\u80fd\u6539\u53d8\u4e86\u3002<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/d98d078685db9ce91016c3a84775910e-0.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe\" \/><br \/><\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">const\u53ea\u5728\u58f0\u660e\u6240\u5728\u7684\u5757\u7ea7\u4f5c\u7528\u57df\u5185\u6709\u6548\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Scoping(\u4f5c\u7528\u57df)<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">ES6\u65b0\u589e\u4e86let\u5173\u952e\u5b57\uff0c\u7528\u6765\u58f0\u660e\u53d8\u91cf\uff0c\u4f46\u58f0\u660e\u7684\u4f5c\u7528\u53ea\u5728\u4ee3\u7801\u5757\u5185\u6709\u6548\u3002<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/d98d078685db9ce91016c3a84775910e-1.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe1\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe1\" \/><\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u4e0a\u9762\u4ee3\u7801\u5728\u4ee3\u7801\u5757\u4e4b\u4e2d\uff0c\u5206\u522b\u7528let\u548cvar\u58f0\u660e\u4e86\u4e24\u4e2a\u53d8\u91cf\u3002\u7136\u540e\u5728\u4ee3\u7801\u5757\u4e4b\u5916\u8c03\u7528\u8fd9\u4e24\u4e2a\u53d8\u91cf\uff0c\u7ed3\u679clet\u58f0\u660e\u7684\u53d8\u91cf\u62a5\u9519\uff0cvar\u58f0\u660e\u7684\u53d8\u91cf\u8fd4\u56de\u4e86\u6b63\u786e\u7684\u503c\u3002\u8fd9\u8868\u660e\uff0clet\u58f0\u660e\u7684\u53d8\u91cf\u53ea\u5728\u5b83\u6240\u5728\u7684\u4ee3\u7801\u5757\u6709\u6548\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/d98d078685db9ce91016c3a84775910e-2.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe2\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe2\" \/><\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u4e0a\u9762\u4ee3\u7801\u7684\u8ba1\u6570\u5668i\uff0c\u53ea\u5728for\u5faa\u73af\u4f53\u5185\u6709\u6548\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">let\u4e3aJavaScript\u65b0\u589e\u4e86\u5757\u7ea7\u4f5c\u7528\u57df\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/abb1d84b8e54ffb4475bf098d711b6e5-3.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe3\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe3\" \/><br \/><\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u4e0a\u9762\u7684\u51fd\u6570\u6709\u4e24\u4e2a\u4ee3\u7801\u5757\uff0c\u90fd\u58f0\u660e\u4e86\u53d8\u91cfx, y\uff0c\u8fd0\u884c\u540e\u8f93\u51fa1 2\u3002\u8fd9\u8868\u793a\u5916\u5c42\u4ee3\u7801\u5757\u4e0d\u53d7\u5185\u5c42\u4ee3\u7801\u5757\u7684\u5f71\u54cd\u3002\u5982\u679c\u4f7f\u7528var\u5b9a\u4e49\u53d8\u91cfn\uff0c\u6700\u540e\u8f93\u51fa\u7684\u503c\u5c31\u662f10 20\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Arrow Functions(\u7bad\u5934\u51fd\u6570)<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u7bad\u5934\u51fd\u6570\u662fES6\u5728\u8bed\u6cd5\u4e0a\u63d0\u4f9b\u7684\u4e00\u4e2a\u5f88\u597d\u7684\u7279\u6027\uff0c\u5176\u7279\u70b9\u6709\uff1a<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u8bed\u6cd5\u66f4\u4e3a\u7b80\u6d01\u4e86\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u6587\u6cd5\u4e0a\u7684\u56fa\u5b9athis\u5bf9\u8c61\u3002<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u4e00\u4e2a\u53c2\u6570<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/abb1d84b8e54ffb4475bf098d711b6e5-4.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe4\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe4\" \/><br \/><\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u591a\u4e2a\u53c2\u6570<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/abb1d84b8e54ffb4475bf098d711b6e5-5.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe5\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe5\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/abb1d84b8e54ffb4475bf098d711b6e5-6.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe6\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe6\" \/><br \/><\/span><\/p>\n<p style=\"line-height:normal\"><\/p>\n<p style=\"line-height:normal\"><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><br \/><\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u6570\u7ec4\u904d\u5386<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/abb1d84b8e54ffb4475bf098d711b6e5-7.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe7\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe7\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/abb1d84b8e54ffb4475bf098d711b6e5-8.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe8\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe8\" \/><br \/><\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Extended Parameter Handling(\u53c2\u6570\u7684\u6269\u5c55)<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u5141\u8bb8\u4e3a\u51fd\u6570\u7684\u53c2\u6570\u8bbe\u7f6e\u9ed8\u8ba4\u503c\uff0c\u5373\u76f4\u63a5\u5199\u5728\u53c2\u6570\u5b9a\u4e49\u7684\u540e\u9762\u3002<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/490f6056a3d05d348132a6fff3398250-9.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe9\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe9\" \/><br \/><\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Rest\u4e0d\u5b9a\u53c2\u6570(\u7528&#8221;&#8230;.&#8221;\u8868\u793a)\u662f\u5728\u51fd\u6570\u4e2d\u4f7f\u7528\u547d\u540d\u53c2\u6570\u540c\u65f6\u63a5\u6536\u4e0d\u5b9a\u6570\u91cf\u7684\u672a\u547d\u540d\u53c2\u6570\u3002<\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/490f6056a3d05d348132a6fff3398250-10.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe10\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe10\" \/><br \/><\/span><\/p>\n<p style=\"line-height:normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Spread\u64cd\u4f5c\u7b26\u548cRest\u4e0d\u5b9a\u53c2\u6570\u4e00\u6837\uff0c\u90fd\u4f7f\u7528 &#8220;&#8230;&#8221; \u8868\u793a\uff0cSpread\u64cd\u4f5c\u7b26\u5141\u8bb8\u6211\u4eec\u5c06\u6570\u7ec4\u4e2d\u7684\u53c2\u6570\u4e00\u4e2a\u4e00\u4e2a\u4f20\u5165\u51fd\u6570\u4e2d\u3002<\/span><\/p>\n<p style=\"line-height: normal\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/490f6056a3d05d348132a6fff3398250-11.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe11\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u63d2\u56fe11\" \/><br \/><\/span><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ECMAScript 6(\u7b80\u79f0ES6)\u662fJavaScript\u8bed\u8a00\u7684\u6700\u65b0\u6807\u51c6\u3002\u56e0\u4e3a\u5f53\u524d\u7248\u672c\u7684ES6\u662f\u57282015\u5e74\u53d1\u5e03\u7684\uff0c\u6240\u4ee5\u53c8\u79f0ECMAScript 2015\u3002 \u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u652f\u6301\u7edd\u5927\u90e8\u5206ES6\u7684\u65b0\u589e\u7279\u6027\u3002 Constants(\u5e38\u91cf) ES6\u65b0\u589e\u4e86const\u5173\u952e\u5b57\uff0c\u7528\u6765\u58f0\u660e\u5e38\u91cf\uff0c\u4e00\u65e6\u58f0\u660e\uff0c\u5e38\u91cf\u7684\u503c\u5c31\u4e0d\u80fd\u6539\u53d8\u4e86\u3002 const\u53ea\u5728\u58f0\u660e\u6240\u5728\u7684\u5757\u7ea7\u4f5c\u7528\u57df\u5185\u6709\u6548\u3002 Scoping(\u4f5c\u7528\u57df) ES6\u65b0\u589e\u4e86let\u5173\u952e\u5b57\uff0c\u7528\u6765\u58f0\u660e\u53d8\u91cf\uff0c\u4f46\u58f0\u660e\u7684\u4f5c\u7528\u53ea\u5728\u4ee3\u7801\u5757\u5185\u6709\u6548\u3002 \u4e0a\u9762\u4ee3\u7801\u5728\u4ee3\u7801\u5757\u4e4b\u4e2d\uff0c\u5206\u522b\u7528let\u548cvar\u58f0\u660e\u4e86\u4e24\u4e2a\u53d8\u91cf\u3002\u7136\u540e\u5728\u4ee3\u7801\u5757\u4e4b\u5916\u8c03\u7528\u8fd9\u4e24\u4e2a\u53d8\u91cf\uff0c\u7ed3\u679clet\u58f0\u660e\u7684\u53d8\u91cf\u62a5\u9519\uff0cvar\u58f0\u660e\u7684\u53d8\u91cf\u8fd4\u56de\u4e86\u6b63\u786e\u7684\u503c\u3002\u8fd9\u8868\u660e\uff0clet\u58f0\u660e\u7684\u53d8\u91cf\u53ea\u5728\u5b83\u6240\u5728\u7684\u4ee3\u7801\u5757\u6709\u6548\u3002 \u4e0a\u9762\u4ee3\u7801\u7684\u8ba1\u6570\u5668i\uff0c\u53ea\u5728for\u5faa\u73af\u4f53\u5185\u6709\u6548\u3002 let\u4e3aJavaScript\u65b0\u589e\u4e86\u5757\u7ea7\u4f5c\u7528\u57df\u3002 \u4e0a\u9762\u7684\u51fd\u6570\u6709\u4e24\u4e2a\u4ee3\u7801\u5757\uff0c\u90fd\u58f0\u660e\u4e86\u53d8\u91cfx, y\uff0c\u8fd0\u884c\u540e\u8f93\u51fa1 2\u3002\u8fd9\u8868\u793a\u5916\u5c42\u4ee3\u7801\u5757\u4e0d\u53d7\u5185\u5c42\u4ee3\u7801\u5757\u7684\u5f71\u54cd\u3002\u5982\u679c\u4f7f\u7528var\u5b9a\u4e49\u53d8\u91cfn\uff0c\u6700\u540e\u8f93\u51fa\u7684\u503c\u5c31\u662f10 20\u3002 Arrow Functions(\u7bad\u5934\u51fd\u6570) \u7bad\u5934\u51fd\u6570\u662fES6\u5728\u8bed\u6cd5\u4e0a\u63d0\u4f9b\u7684\u4e00\u4e2a\u5f88\u597d\u7684\u7279\u6027\uff0c\u5176\u7279\u70b9\u6709\uff1a \u8bed\u6cd5\u66f4\u4e3a\u7b80\u6d01\u4e86\u3002 \u6587\u6cd5\u4e0a\u7684\u56fa\u5b9athis\u5bf9\u8c61\u3002 \u4e00\u4e2a\u53c2\u6570 \u591a\u4e2a\u53c2\u6570 \u6570\u7ec4\u904d\u5386 Extended Parameter Handling(\u53c2\u6570\u7684\u6269\u5c55) \u5141\u8bb8\u4e3a\u51fd\u6570\u7684\u53c2\u6570\u8bbe\u7f6e\u9ed8\u8ba4\u503c\uff0c\u5373\u76f4\u63a5\u5199\u5728\u53c2\u6570\u5b9a\u4e49\u7684\u540e\u9762\u3002 Rest\u4e0d\u5b9a\u53c2\u6570(\u7528&#8221;&#8230;.&#8221;\u8868\u793a)\u662f\u5728\u51fd\u6570\u4e2d\u4f7f\u7528\u547d\u540d\u53c2\u6570\u540c\u65f6\u63a5\u6536\u4e0d\u5b9a\u6570\u91cf\u7684\u672a\u547d\u540d\u53c2\u6570\u3002 Spread\u64cd\u4f5c\u7b26\u548cRest\u4e0d\u5b9a\u53c2\u6570\u4e00\u6837\uff0c\u90fd\u4f7f\u7528 &#8220;&#8230;&#8221; \u8868\u793a\uff0cSpread\u64cd\u4f5c\u7b26\u5141\u8bb8\u6211\u4eec\u5c06\u6570\u7ec4\u4e2d\u7684\u53c2\u6570\u4e00\u4e2a\u4e00\u4e2a\u4f20\u5165\u51fd\u6570\u4e2d\u3002 \u4ee5\u4e0a\u5c31\u662fES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff081\uff09\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-29363","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29363"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29363\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}