{"id":916,"date":"2024-09-14T23:20:09","date_gmt":"2024-09-14T15:20:09","guid":{"rendered":"https:\/\/www.huangjiaqi-mise.site\/?p=916"},"modified":"2024-09-14T23:59:57","modified_gmt":"2024-09-14T15:59:57","slug":"%e7%94%a8-unity-%e6%9e%84%e5%bb%ba%e6%a8%a1%e6%8b%9f%e7%b3%bb%e7%bb%9f-coroutine%e5%8d%8f%e7%a8%8b%e6%8a%80%e6%9c%af","status":"publish","type":"post","link":"https:\/\/www.huangjiaqi-mise.site\/?p=916","title":{"rendered":"\u7528 Unity \u6784\u5efa\u6a21\u62df\u7cfb\u7edf &#8211; Coroutine(\u534f\u7a0b\u6280\u672f)"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"916\" class=\"elementor elementor-916\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5fcc0bc elementor-section-full_width elementor-section-content-middle elementor-section-height-default elementor-section-height-default\" data-id=\"5fcc0bc\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5059116\" data-id=\"5059116\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c2a05af elementor-widget-divider--separator-type-pattern elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"c2a05af\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\" style=\"--divider-pattern-url: url(&quot;data:image\/svg+xml,%3Csvg xmlns=&#039;http:\/\/www.w3.org\/2000\/svg&#039; preserveAspectRatio=&#039;none&#039; overflow=&#039;visible&#039; height=&#039;100%&#039; viewBox=&#039;0 0 20 16&#039; fill=&#039;none&#039; stroke=&#039;black&#039; stroke-width=&#039;1&#039; stroke-linecap=&#039;square&#039; stroke-miterlimit=&#039;10&#039;%3E%3Cg transform=&#039;translate(-12.000000, 0)&#039;%3E%3Cpath d=&#039;M28,0L10,18&#039;\/%3E%3Cpath d=&#039;M18,0L0,18&#039;\/%3E%3Cpath d=&#039;M48,0L30,18&#039;\/%3E%3Cpath d=&#039;M38,0L20,18&#039;\/%3E%3C\/g%3E%3C\/svg%3E&quot;);\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0ff32b1 elementor-widget elementor-widget-text-editor\" data-id=\"0ff32b1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4>\u4e00\u3001\u4ec0\u4e48\u662f\u534f\u7a0b\uff1f<\/h4><p>\u534f\u7a0b\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u51fd\u6570\uff0c\u5176\u6267\u884c\u53ef\u4ee5\u88ab\u6682\u505c\u548c\u6062\u590d\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7b49\u5f85\u67d0\u4e2a\u6761\u4ef6\u6216\u65f6\u95f4\u7684\u573a\u666f\u3002\u5728 Unity \u4e2d\uff0c\u534f\u7a0b\u901a\u5e38\u7528\u4e8e\u5904\u7406\u65f6\u95f4\u5ef6\u8fdf\u3001\u52a8\u753b\u3001\u7f51\u7edc\u8bf7\u6c42\u7b49\u4e0d\u9700\u8981\u963b\u585e\u4e3b\u7ebf\u7a0b\u7684\u4efb\u52a1\u3002<\/p><h4>\u4e8c\u3001\u57fa\u672c\u7528\u6cd5<\/h4><h6>1. \u542f\u52a8\u534f\u7a0b\uff1a<\/h6><p>\u4f7f\u7528 <strong>StartCoroutine()<\/strong> \u65b9\u6cd5\u6765\u542f\u52a8\u4e00\u4e2a\u534f\u7a0b\u3002\u534f\u7a0b\u901a\u5e38\u8fd4\u56de <strong>IEnumerator<\/strong> \u7c7b\u578b\u3002<br \/>\u5982\uff1a<strong>StartCoroutine( MyCoroutine() )<\/strong>;<\/p><h6>2. \u5b9a\u4e49\u534f\u7a0b\uff1a<\/h6><p>\u5728\u534f\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 yield \u8bed\u53e5\u6765\u6682\u505c\u6267\u884c\uff0c\u76f4\u5230\u6ee1\u8db3\u67d0\u4e2a\u6761\u4ef6\u6216\u65f6\u95f4\u5230\u8fbe\u3002\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ada796a elementor-widget elementor-widget-html\" data-id=\"ada796a\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre>\r\n<code>\r\n<strong>IEnumerator MyCoroutine<\/strong>()\r\n{\r\n    print(\"\u5f00\u59cb\");\r\n    yield return new WaitForSeconds(2); \/\/ \u7b49\u5f852\u79d2\r\n    print(\"\u7ed3\u675f\");\r\n}\r\n<\/code>\r\n<\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c096f7c elementor-widget elementor-widget-text-editor\" data-id=\"c096f7c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h6>3. \u4f7f\u7528\u4e0d\u540c\u7684 <strong>yield<\/strong>\uff1a<\/h6><p>Unity \u63d0\u4f9b\u4e86\u591a\u79cd <strong>yield<\/strong> \u7c7b\u578b\uff0c\u6700\u5e38\u89c1\u7684\u5305\u62ec\uff1a<br \/><strong>yield return null<\/strong>;\uff1a\u5728\u4e0b\u4e00\u5e27\u7ee7\u7eed\u6267\u884c\u3002<br \/><strong>yield return new WaitForSeconds(float seconds)<\/strong>;\uff1a\u7b49\u5f85\u6307\u5b9a\u7684\u65f6\u95f4\u3002<br \/><strong>yield return new WaitForEndOfFrame()<\/strong>;\uff1a\u5728\u5f53\u524d\u5e27\u7ed3\u675f\u540e\u6267\u884c\u3002<br \/><strong>yield return new WaitUntil(Funcpredicate);<\/strong>\uff1a\u7b49\u5f85\u76f4\u5230\u6761\u4ef6\u4e3a\u771f\u3002<\/p><h4>\u4e09\u3001\u534f\u7a0b\u7684\u4f18\u52bf<\/h4><p><strong>1. \u975e\u963b\u585e\u6267\u884c\uff1a<\/strong>\u534f\u7a0b\u5141\u8bb8\u4f60\u5728\u4e0d\u963b\u585e\u4e3b\u7ebf\u7a0b\u7684\u60c5\u51b5\u4e0b\u6267\u884c\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u4efb\u52a1\uff0c\u6bd4\u5982\u7b49\u5f85\u65f6\u95f4\u3001\u52a8\u753b\u7b49\uff0c\u4f7f\u5f97\u6e38\u620f\u4f9d\u7136\u4fdd\u6301\u6d41\u7545\u3002<br \/><strong>2. \u6613\u4e8e\u7f16\u5199\u548c\u7406\u89e3\uff1a<\/strong>\u4f7f\u7528\u534f\u7a0b\u53ef\u4ee5\u4f7f\u4ee3\u7801\u770b\u8d77\u6765\u66f4\u52a0\u6e05\u6670\uff0c\u56e0\u4e3a\u5b83\u907f\u514d\u4e86\u56de\u8c03\u5730\u72f1\uff08callback hell\uff09\uff0c\u5e76\u4e14\u903b\u8f91\u66f4\u63a5\u8fd1\u4e8e\u987a\u5e8f\u6267\u884c\u3002<br \/><strong>3. \u7075\u6d3b\u6027\uff1a<\/strong>\u534f\u7a0b\u53ef\u4ee5\u5728\u591a\u4e2a\u5e27\u4e4b\u95f4\u5206\u914d\u5de5\u4f5c\uff0c\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u5f02\u6b65\u903b\u8f91\u3002<\/p><h4>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/h4><p><strong>1. \u751f\u547d\u5468\u671f\uff1a<\/strong>\u534f\u7a0b\u7684\u751f\u547d\u5468\u671f\u4e0e\u542f\u52a8\u5b83\u7684 MonoBehaviour \u7ec4\u4ef6\u76f8\u540c\u3002\u5982\u679c\u8be5\u7ec4\u4ef6\u88ab\u7981\u7528\u6216\u9500\u6bc1\uff0c\u534f\u7a0b\u5c06\u81ea\u52a8\u505c\u6b62\u3002<br \/><strong>2. \u6027\u80fd\uff1a<\/strong>\u867d\u7136\u534f\u7a0b\u76f8\u5bf9\u9ad8\u6548\uff0c\u4f46\u4ecd\u7136\u9700\u8981\u6ce8\u610f\u8fc7\u591a\u7684\u534f\u7a0b\u53ef\u80fd\u4f1a\u5f71\u54cd\u6027\u80fd\uff0c\u7279\u522b\u662f\u5728\u6bcf\u5e27\u90fd\u9700\u8981\u5927\u91cf\u534f\u7a0b\u7684\u60c5\u51b5\u4e0b\u3002<\/p><h4>\u4e94\u3001\u5e94\u7528\u8303\u4f8b<\/h4>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ee8fb5a elementor-widget elementor-widget-html\" data-id=\"ee8fb5a\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre>\n<code>\n\n<strong>using System.Collections;<\/strong>\n<strong>using System.Collections.Generic;<\/strong>\n<strong>using Unity.VisualScripting;<\/strong>\n<strong>using UnityEngine;<\/strong>\n\npublic class Test : MonoBehaviour\n{\n    bool IsWaitingA;\n    bool IsWaitingB;\n\n\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        IsWaitingA = true;\n        IsWaitingB = true;\n        StartCoroutine(Task());\n    }\n\n    \/\/ Update is called once per frame\n    void Update()\n    {\n        if (Input.GetKeyDown(KeyCode.A))\n        {\n            IsWaitingA = false;\n        }\n\n        if (Input.GetKeyDown(KeyCode.B))\n        {\n            IsWaitingB = false;\n        }\n    }\n\n    IEnumerator Task()\n    {\n        while (IsWaitingA)\n        {\n            print(\"Waiting A\");\n            yield return null;\n        }\n        print(\"IsWaitingA ------ > OK\");\n\n        while (IsWaitingB)\n        {\n            print(\"Waiting B\");\n            yield return null;\n        }\n        print(\"IsWaitingB ------ > OK\");\n    }\n}\n\n<\/code>\n<\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-81be3f5 elementor-widget elementor-widget-text-editor\" data-id=\"81be3f5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u4ee5\u4e0a\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u534f\u7a0b\u6765\u5904\u7406\u591a\u4e2a\u7b49\u5f85\u72b6\u6001\uff0c\u901a\u8fc7\u7528\u6237\u8f93\u5165\u63a7\u5236\u534f\u7a0b\u7684\u6267\u884c\u6d41\u3002\u6309\u4e0b\u4e0d\u540c\u7684\u952e\u4f1a\u5f71\u54cd\u534f\u7a0b\u7684\u884c\u4e3a\uff0c\u4f7f\u5f97\u4ee3\u7801\u5728\u6e38\u620f\u4e2d\u5b9e\u73b0\u4e86\u7b80\u5355\u7684\u72b6\u6001\u7b49\u5f85\u903b\u8f91\u3002\u00a0<\/p><h4>\u516d\u3001\u4ee3\u7801\u7ed3\u6784<\/h4><h6>\u5b57\u6bb5\u5b9a\u4e49\uff1a<\/h6><p>bool IsWaitingA\uff1a\u7528\u4e8e\u63a7\u5236\u534f\u7a0b\u662f\u5426\u5728\u7b49\u5f85 A \u4e8b\u4ef6\u3002<\/p><p>bool IsWaitingB\uff1a\u7528\u4e8e\u63a7\u5236\u534f\u7a0b\u662f\u5426\u5728\u7b49\u5f85 B \u4e8b\u4ef6\u3002<\/p><h6>Start \u65b9\u6cd5\uff1a<\/h6><p>\u5728\u6e38\u620f\u5f00\u59cb\u65f6\uff0cIsWaitingA \u548c IsWaitingB \u90fd\u88ab\u521d\u59cb\u5316\u4e3a true\uff0c\u8868\u793a\u5f53\u524d\u90fd\u5728\u7b49\u5f85\u3002<\/p><p>\u542f\u52a8 Task \u534f\u7a0b\u3002<\/p><h6>Update \u65b9\u6cd5\uff1a<\/h6><p>\u6bcf\u5e27\u68c0\u67e5\u662f\u5426\u6309\u4e0b\u4e86 A \u952e\u6216 B \u952e\u3002<\/p><p>\u5982\u679c\u6309\u4e0b A \u952e\uff0cIsWaitingA \u88ab\u8bbe\u7f6e\u4e3a false\uff0c\u8868\u793a\u4e0d\u518d\u7b49\u5f85 A\u3002<\/p><p>\u5982\u679c\u6309\u4e0b B \u952e\uff0cIsWaitingB \u88ab\u8bbe\u7f6e\u4e3a false\uff0c\u8868\u793a\u4e0d\u518d\u7b49\u5f85 B\u3002<\/p><h6>Task \u534f\u7a0b\uff1a<\/h6><ul><li>\u9996\u5148\u8fdb\u5165\u7b2c\u4e00\u4e2a while (IsWaitingA) \u5faa\u73af\uff1a<\/li><li>\u53ea\u8981 IsWaitingA \u4e3a true\uff0c\u5c31\u4f1a\u6253\u5370 &#8220;Waiting A&#8221;\u3002<\/li><li>yield return null; \u4f7f\u534f\u7a0b\u6682\u505c\uff0c\u7b49\u5f85\u4e0b\u4e00\u5e27\u7ee7\u7eed\u6267\u884c\u3002<\/li><li>\u4e00\u65e6\u6309\u4e0b A \u952e\uff0cIsWaitingA \u53d8\u4e3a false\uff0c\u5faa\u73af\u7ed3\u675f\uff0c\u6253\u5370 &#8220;IsWaitingA &#8212;&#8212; &gt; OK&#8221;\u3002<\/li><li>\u7136\u540e\u8fdb\u5165\u7b2c\u4e8c\u4e2a while (IsWaitingB) \u5faa\u73af\uff1a<\/li><li>\u53ea\u8981 IsWaitingB \u4e3a true\uff0c\u5c31\u4f1a\u6253\u5370 &#8220;Waiting B&#8221;\u3002<\/li><li>\u540c\u6837\u4f7f\u7528 yield return null; \u6682\u505c\uff0c\u7b49\u5f85\u4e0b\u4e00\u5e27\u3002<\/li><li>\u4e00\u65e6\u6309\u4e0b B \u952e\uff0cIsWaitingB \u53d8\u4e3a false\uff0c\u5faa\u73af\u7ed3\u675f\uff0c\u6253\u5370 &#8220;IsWaitingB &#8212;&#8212; &gt; OK&#8221;\u3002<\/li><\/ul><h4>\u4e03\u3001\u8fd0\u884c\u903b\u8f91\u603b\u7ed3<\/h4><p>(a) \u542f\u52a8\u65f6\uff1a\u811a\u672c\u542f\u52a8\uff0c\u521d\u59cb\u5316\u4e24\u4e2a\u7b49\u5f85\u72b6\u6001\u4e3a true\uff0c\u5e76\u5f00\u59cb\u6267\u884c\u534f\u7a0b Task\u3002<\/p><p>(b) \u7b49\u5f85 A\uff1a<\/p><p>\u534f\u7a0b\u9996\u5148\u8fdb\u5165 while (IsWaitingA) \u5faa\u73af\uff0c\u6301\u7eed\u6253\u5370 &#8220;Waiting A&#8221;\u3002<\/p><p>\u76f4\u5230\u73a9\u5bb6\u6309\u4e0b A \u952e\uff0cIsWaitingA \u53d8\u4e3a false\uff0c\u7136\u540e\u6253\u5370 &#8220;IsWaitingA &#8212;&#8212; &gt; OK&#8221;\u3002<\/p><p>(c) \u7b49\u5f85 B\uff1a<\/p><p>\u63a5\u4e0b\u6765\uff0c\u534f\u7a0b\u8fdb\u5165 while (IsWaitingB) \u5faa\u73af\uff0c\u5f00\u59cb\u4e00\u76f4\u6253\u5370 &#8220;Waiting B&#8221;\u3002<\/p><p>\u76f4\u5230\u73a9\u5bb6\u6309\u4e0b B \u952e\uff0cIsWaitingB \u53d8\u4e3a false\uff0c\u7136\u540e\u6253\u5370 &#8220;IsWaitingB &#8212;&#8212; &gt; OK&#8221;\u3002\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6376bde elementor-widget-divider--separator-type-pattern elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"6376bde\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\" style=\"--divider-pattern-url: url(&quot;data:image\/svg+xml,%3Csvg xmlns=&#039;http:\/\/www.w3.org\/2000\/svg&#039; preserveAspectRatio=&#039;none&#039; overflow=&#039;visible&#039; height=&#039;100%&#039; viewBox=&#039;0 0 20 16&#039; fill=&#039;none&#039; stroke=&#039;black&#039; stroke-width=&#039;1&#039; stroke-linecap=&#039;square&#039; stroke-miterlimit=&#039;10&#039;%3E%3Cg transform=&#039;translate(-12.000000, 0)&#039;%3E%3Cpath d=&#039;M28,0L10,18&#039;\/%3E%3Cpath d=&#039;M18,0L0,18&#039;\/%3E%3Cpath d=&#039;M48,0L30,18&#039;\/%3E%3Cpath d=&#039;M38,0L20,18&#039;\/%3E%3C\/g%3E%3C\/svg%3E&quot;);\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4ec0\u4e48\u662f\u534f\u7a0b\uff1f \u534f\u7a0b\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u51fd\u6570\uff0c\u5176\u6267\u884c\u53ef\u4ee5\u88ab\u6682\u505c\u548c\u6062\u590d\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7b49\u5f85\u67d0\u4e2a\u6761\u4ef6\u6216\u65f6\u95f4\u7684\u573a\u666f\u3002\u5728 Uni [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"class_list":["post-916","post","type-post","status-publish","format-standard","hentry","category-unity"],"_links":{"self":[{"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=\/wp\/v2\/posts\/916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=916"}],"version-history":[{"count":9,"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=\/wp\/v2\/posts\/916\/revisions"}],"predecessor-version":[{"id":928,"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=\/wp\/v2\/posts\/916\/revisions\/928"}],"wp:attachment":[{"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huangjiaqi-mise.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}