{"id":107991,"date":"2024-04-17T11:30:58","date_gmt":"2024-04-17T03:30:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/107991.html"},"modified":"2024-04-17T11:30:59","modified_gmt":"2024-04-17T03:30:59","slug":"flutter%e5%bc%80%e5%8f%91%e4%b8%ad%e7%9a%84%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/107991.html","title":{"rendered":"Flutter\u5f00\u53d1\u4e2d\u7684\u72b6\u6001\u7ba1\u7406\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/02172500\/5114e511-1a16-4e19-8242-5e5a751befb4.webp\" alt=\"Flutter\u5f00\u53d1\u4e2d\u7684\u72b6\u6001\u7ba1\u7406\u89e3\u51b3\u65b9\u6848\" \/><\/p>\n<p><p>\u5728Flutter\u5e94\u7528\u5f00\u53d1\u4e2d\uff0c\u72b6\u6001\u7ba1\u7406\u662f\u6838\u5fc3\u95ee\u9898\u4e4b\u4e00\uff0c\u56e0\u4e3a\u5b83\u76f4\u63a5\u5f71\u54cd\u5e94\u7528\u7684\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u3002<strong>\u72b6\u6001\u7ba1\u7406\u7684\u4e3b\u8981\u89e3\u51b3\u65b9\u6848\u5305\u62ec\uff1aProvider\u3001Riverpod\u3001Bloc\u3001GetX\u3001\u4ee5\u53caMobX<\/strong>\u3002\u6bcf\u79cd\u65b9\u6848\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u4f46<strong>Provider<\/strong>\u65e0\u7591\u662f\u6700\u53d7\u6b22\u8fce\u548c\u5e7f\u6cdb\u4f7f\u7528\u7684\u4e00\u79cd\u3002\u8fd9\u4e3b\u8981\u5f97\u76ca\u4e8e\u5b83\u7684\u7b80\u5355\u6027\u548cFlutter\u56e2\u961f\u7684\u63a8\u8350\u3002<\/p>\n<\/p>\n<p><p>Provider\u662f\u4e00\u79cd\u4f9d\u8d56\u6ce8\u5165\uff08DI\uff09\u7cfb\u7edf\uff0c\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u8fdb\u884c\u72b6\u6001\u7ba1\u7406\u4e5f\u63d0\u4f9b\u4e86\u4e00\u79cd\u4ece\u4e0a\u5230\u4e0b\u4f20\u9012\u6570\u636e\u548c\u4e8b\u4ef6\u7684\u673a\u5236\u3002\u5b83\u65e8\u5728\u4f7f\u72b6\u6001\u7684\u7ba1\u7406\u53d8\u5f97\u66f4\u4e3a\u7b80\u5355\u548c\u9ad8\u6548\uff0c\u540c\u65f6\u964d\u4f4e\u5e94\u7528\u7684\u6574\u4f53\u590d\u6742\u6027\u3002\u4f7f\u7528Provider\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u72b6\u6001\u5206\u79bb\u5230\u53ef\u590d\u7528\u7684\u6a21\u5757\u4e2d\uff0c\u5e76\u4e14\u80fd\u591f\u5728\u7ec4\u4ef6\u6811\u4e2d\u4efb\u610f\u4f4d\u7f6e\u8bbf\u95ee\u8fd9\u4e9b\u72b6\u6001\u3002\u8fd9\u79cd\u673a\u5236\u5927\u5927\u51cf\u5c11\u4e86\u5e94\u7528\u4e2d\u5fc5\u8981\u7684boilerplate\u4ee3\u7801\uff0c\u5e76\u4f7f\u5f97\u72b6\u6001\u66f4\u65b0\u7684\u903b\u8f91\u53d8\u5f97\u6e05\u6670\u6613\u61c2\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001PROVIDER<\/h3>\n<\/p>\n<p><p>Provider\u7684\u6838\u5fc3\u6982\u5ff5\u662f\u63d0\u4f9b\u8005\uff08Provider\uff09\u548c\u6d88\u8d39\u8005\uff08Consumer\uff09\u3002\u63d0\u4f9b\u8005\u8d1f\u8d23\u201c\u63d0\u4f9b\u201d\u72b6\u6001\uff0c\u800c\u6d88\u8d39\u8005\u5219\u201c\u6d88\u8d39\u201d\u8fd9\u4e9b\u72b6\u6001\uff0c\u5373\u6839\u636e\u72b6\u6001\u7684\u4e0d\u540c\u6765\u91cd\u6784UI\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u4f7f\u7528Provider\u7684\u6b65\u9aa4<\/strong>\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u9996\u5148\uff0c\u5728\u5e94\u7528\u7684\u9876\u5c42\u521b\u5efa\u4e00\u4e2aProvider\uff0c\u5b83\u7528\u4e8e\u5411\u6574\u4e2a\u5e94\u7528\u63d0\u4f9b\u72b6\u6001\u6216\u5bf9\u8c61\u3002<\/li>\n<li>\u7136\u540e\uff0c\u5728\u5e94\u7528\u4e2d\u9700\u8981\u4f7f\u7528\u8fd9\u4e9b\u72b6\u6001\u7684\u5730\u65b9\uff0c\u901a\u8fc7Consumer\u6216Provider.of\u7684\u65b9\u5f0f\u6765\u83b7\u53d6\u72b6\u6001\u3002<\/li>\n<li>\u5f53\u72b6\u6001\u6539\u53d8\u65f6\uff0cProvider\u8d1f\u8d23\u7ba1\u7406\u8fd9\u4e9b\u72b6\u6001\u7684\u66f4\u65b0\uff0c\u5e76\u901a\u77e5\u6240\u6709\u4f7f\u7528\u8be5\u72b6\u6001\u7684\u6d88\u8d39\u8005\u91cd\u65b0\u6784\u5efaUI\u3002<\/li>\n<\/ol>\n<\/li>\n<li>\n<p><strong>Provider\u7684\u4f18\u52bf<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>Provider\u7684\u7b80\u5355\u6027\u662f\u5176\u6700\u5927\u7684\u4f18\u52bf\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u5b83\u4e5f\u975e\u5e38\u7075\u6d3b\u548c\u5f3a\u5927\u3002\u5f00\u53d1\u8005\u4e0d\u9700\u8981\u7f16\u5199\u592a\u591a\u989d\u5916\u7684\u4ee3\u7801\u5c31\u80fd\u5b9e\u73b0\u590d\u6742\u7684\u72b6\u6001\u7ba1\u7406\u548c\u7ec4\u4ef6\u901a\u4fe1\u6a21\u5f0f\uff0c\u8fd9\u5bf9\u4e8e\u4fdd\u6301\u4ee3\u7801\u7684\u7b80\u6d01\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001RIVERPOD<\/h3>\n<\/p>\n<p><p>Riverpod\u662fProvider\u7684\u6539\u8fdb\u7248\uff0c\u5b83\u89e3\u51b3\u4e86Provider\u4e00\u4e9b\u5b58\u5728\u7684\u5c40\u9650\u6027\uff0c\u5982\u5168\u5c40\u8bbf\u95ee\u3001\u6d4b\u8bd5\u96be\u5ea6\u7b49\uff0c\u63d0\u4f9b\u4e86\u66f4\u4e3a\u5f3a\u5927\u548c\u7075\u6d3b\u7684\u72b6\u6001\u7ba1\u7406\u80fd\u529b\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>Riverpod\u7684\u7279\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5168\u5c40\u8bbf\u95ee\u6027\uff1aRiverpod\u4e0d\u4f9d\u8d56\u4e8e\u7ec4\u4ef6\u6811\uff0c\u56e0\u6b64\u53ef\u4ee5\u5728\u5e94\u7528\u7684\u4efb\u4f55\u5730\u65b9\u8bbf\u95ee\u72b6\u6001\uff0c\u8fd9\u63d0\u9ad8\u4e86\u5176\u7075\u6d3b\u6027\u3002<\/li>\n<li>\u66f4\u597d\u7684\u6d4b\u8bd5\u652f\u6301\uff1a\u7531\u4e8eRiverpod\u7684\u72b6\u6001\u4e0d\u4f9d\u8d56\u4e8eWidget\u6811\uff0c\u56e0\u6b64\u66f4\u6613\u4e8e\u6d4b\u8bd5\u3002<\/li>\n<li>\u53ef\u7ec4\u5408\u6027\uff1aRiverpod\u652f\u6301\u5c06\u591a\u4e2a\u63d0\u4f9b\u8005\u7ec4\u5408\u5728\u4e00\u8d77\u4f7f\u7528\uff0c\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u72b6\u6001\u7ba1\u7406\u9700\u6c42\u3002<\/li>\n<\/ol>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Riverpod<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Riverpod\u7684\u5173\u952e\u662f\u7406\u89e3Provider\u548cConsumer\u7684\u5173\u7cfb\u3002\u4e0eProvider\u76f8\u6bd4\uff0cRiverpod\u5f15\u5165\u4e86ProviderScope\uff0c\u5b83\u5141\u8bb8\u72b6\u6001\u5728\u6574\u4e2a\u5e94\u7528\u4e2d\u88ab\u5171\u4eab\u548c\u66f4\u6539\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001BLOC<\/h3>\n<\/p>\n<p><p>Bloc\u662f\u53e6\u4e00\u79cd\u6d41\u884c\u7684\u72b6\u6001\u7ba1\u7406\u89e3\u51b3\u65b9\u6848\uff0c\u5b83\u57fa\u4e8eReactive Programming\uff08\u54cd\u5e94\u5f0f\u7f16\u7a0b\uff09\uff0c\u7279\u522b\u9002\u5408\u590d\u6742\u5e94\u7528\u7684\u72b6\u6001\u7ba1\u7406\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>Bloc\u7684\u539f\u7406<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>Bloc\u901a\u8fc7\u5c06\u5e94\u7528\u72b6\u6001\u7684\u7ba1\u7406\u548c\u4e1a\u52a1\u903b\u8f91\u5206\u79bb\u6765\u964d\u4f4e\u5404\u90e8\u5206\u4e4b\u95f4\u7684\u8026\u5408\u5ea6\u3002\u5b83\u4f7f\u7528Stream\u6765\u7ba1\u7406\u72b6\u6001\u7684\u53d8\u5316\uff0c\u6bcf\u5f53\u72b6\u6001\u66f4\u65b0\u65f6\uff0cBloc\u90fd\u4f1a\u53d1\u9001\u4e00\u4e2a\u65b0\u7684\u72b6\u6001\u5230Stream\u4e2d\uff0c\u7136\u540eUI\u5c42\u53ef\u4ee5\u76d1\u542c\u8fd9\u4e9bStream\u6765\u76f8\u5e94\u5730\u91cd\u5efa\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Bloc\u7684\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>Bloc\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e\u5176\u63d0\u4f9b\u4e86\u6e05\u6670\u7684\u5206\u79bb\u903b\u8f91\u548cUI\u4ee3\u7801\u7684\u67b6\u6784\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u6613\u4e8e\u7406\u89e3\u3001\u7ef4\u62a4\u548c\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u56db\u3001GETX<\/h3>\n<\/p>\n<p><p>GetX\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Flutter\u5e93\uff0c\u7528\u4e8e\u72b6\u6001\u7ba1\u7406\u3001\u8def\u7531\u7ba1\u7406\u548c\u4f9d\u8d56\u7ba1\u7406\uff0c\u5728\u793e\u533a\u4e2d\u4e5f\u975e\u5e38\u53d7\u6b22\u8fce\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>GetX\u7684\u7279\u6027<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>GetX\u63d0\u4f9b\u7684API\u7b80\u6d01\u660e\u4e86\uff0c\u80fd\u591f\u6781\u5927\u5730\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u5b83\u4e0d\u4ec5\u652f\u6301\u54cd\u5e94\u5f0f\u72b6\u6001\u7ba1\u7406\uff0c\u4e5f\u652f\u6301\u5e38\u89c4\u7684\u72b6\u6001\u7ba1\u7406\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u9700\u8981\u7075\u6d3b\u9009\u62e9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528GetX\u8fdb\u884c\u72b6\u6001\u7ba1\u7406<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>\u5728GetX\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f<code>.obs<\/code>\u5c5e\u6027\u6765\u5c06\u666e\u901a\u53d8\u91cf\u53d8\u4e3a\u53ef\u89c2\u5bdf\u7684\u72b6\u6001\u3002\u5f53\u72b6\u6001\u6539\u53d8\u65f6\uff0c\u53ea\u9700\u8c03\u7528<code>update()<\/code>\u65b9\u6cd5\uff0cGetX\u5c31\u4f1a\u81ea\u52a8\u66f4\u65b0\u4f7f\u7528\u8be5\u72b6\u6001\u7684Widgets\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001MOBX<\/h3>\n<\/p>\n<p><p>MobX\u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u72b6\u6001\u7ba1\u7406\u5e93\uff0c\u5b83\u5021\u5bfc\u901a\u8fc7\u54cd\u5e94\u5f0f\u7f16\u7a0b\u539f\u5219\u6765\u7ba1\u7406\u72b6\u6001\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>MobX\u7684\u4e3b\u65e8<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>\u5b83\u7684\u6838\u5fc3\u7406\u5ff5\u662f\u4efb\u4f55\u6e90\u81ea\u5e94\u7528\u72b6\u6001\u7684\u4e1c\u897f\u90fd\u5e94\u8be5\u81ea\u52a8\u5730\u83b7\u5f97\u66f4\u65b0\u3002\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u8005\u53ea\u9700\u66f4\u6539\u72b6\u6001\uff0cUI\u4f1a\u81ea\u52a8\u54cd\u5e94\u8fd9\u4e9b\u53d8\u5316\u5e76\u8fdb\u884c\u66f4\u65b0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528MobX\u7684\u597d\u5904<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>\u4f7f\u7528MobX\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u907f\u514d\u624b\u52a8\u64cd\u4f5cDOM\uff0c\u51cf\u5c11\u6a21\u677f\u4ee3\u7801\uff0c\u901a\u8fc7\u7b80\u5355\u7684\u72b6\u6001\u7ba1\u7406\u6765\u5b9e\u73b0\u590d\u6742\u7684UI\u81ea\u52a8\u66f4\u65b0\u903b\u8f91\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u6bd4\u8f83\u8fd9\u4e94\u79cdFlutter\u72b6\u6001\u7ba1\u7406\u89e3\u51b3\u65b9\u6848\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9879\u76ee\u9700\u6c42\u548c\u56e2\u961f\u4e60\u60ef\u6765\u9009\u62e9\u6700\u9002\u5408\u7684\u4e00\u79cd\u3002\u4e00\u822c\u6765\u8bf4\uff0cProvider\u9002\u5408\u5c0f\u5230\u4e2d\u578b\u9879\u76ee\u3001Riverpod\u548cBloc\u9002\u5408\u9700\u8981\u5168\u5c40\u72b6\u6001\u7ba1\u7406\u548c\u590d\u6742\u903b\u8f91\u7684\u5927\u578b\u5e94\u7528\u3001GetX\u548cMobX\u5219\u5404\u81ea\u6709\u5176\u72ec\u5230\u4e4b\u5904\uff0c\u9002\u5408\u8ffd\u6c42\u5f00\u53d1\u6548\u7387\u548c\u54cd\u5e94\u5f0f\u7f16\u7a0b\u98ce\u683c\u7684\u9879\u76ee\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u4e00\u79cd\uff0c\u91cd\u8981\u7684\u662f\u6df1\u5165\u7406\u89e3\u5176\u539f\u7406\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u8fd9\u6837\u624d\u80fd\u53d1\u6325\u51fa\u72b6\u6001\u7ba1\u7406\u65b9\u6848\u7684\u6700\u5927\u6548\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. Flutter\u5f00\u53d1\u4e2d\u6709\u54ea\u4e9b\u5e38\u7528\u7684\u72b6\u6001\u7ba1\u7406\u89e3\u51b3\u65b9\u6848\uff1f<\/strong><br \/>\n\u5728Flutter\u5f00\u53d1\u4e2d\uff0c\u5e38\u7528\u7684\u72b6\u6001\u7ba1\u7406\u89e3\u51b3\u65b9\u6848\u6709\u6709\u72b6\u6001\u7ec4\u4ef6\uff08Stateful Widget\uff09\u548c\u72b6\u6001\u7ba1\u7406\u5e93\uff08\u4f8b\u5982Provider\u3001Redux\u3001GetX\u7b49\uff09\u3002<\/p>\n<p><strong>2. \u4ec0\u4e48\u662f\u6709\u72b6\u6001\u7ec4\u4ef6\uff08Stateful Widget\uff09\uff1f<\/strong><br \/>\n\u6709\u72b6\u6001\u7ec4\u4ef6\u901a\u5e38\u7528\u6765\u7ba1\u7406\u4e00\u4e9b\u9700\u8981\u52a8\u6001\u53d8\u5316\u7684\u6570\u636e\u3002\u5b83\u5305\u542b\u4e00\u4e2a\u53ef\u53d8\u7684\u72b6\u6001\u5bf9\u8c61\uff0c\u5f53\u72b6\u6001\u53d1\u751f\u53d8\u5316\u65f6\uff0cFlutter\u4f1a\u8c03\u7528build()\u65b9\u6cd5\u91cd\u65b0\u6784\u5efaUI\uff0c\u5e76\u66f4\u65b0\u76f8\u5e94\u7684\u754c\u9762\u3002\u6709\u72b6\u6001\u7ec4\u4ef6\u8f83\u4e3a\u7b80\u5355\uff0c\u9002\u7528\u4e8e\u5c0f\u578b\u5e94\u7528\u6216\u7b80\u5355\u7684\u72b6\u6001\u7ba1\u7406\u9700\u6c42\u3002<\/p>\n<p><strong>3. Provider\u3001Redux\u548cGetX\u7b49\u72b6\u6001\u7ba1\u7406\u5e93\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\n\u8fd9\u4e9b\u72b6\u6001\u7ba1\u7406\u5e93\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u3001\u7cbe\u7ec6\u7684\u72b6\u6001\u7ba1\u7406\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u590d\u6742\u7684\u5e94\u7528\u6216\u5bf9\u72b6\u6001\u7ba1\u7406\u6709\u66f4\u9ad8\u8981\u6c42\u7684\u573a\u666f\u3002Provider\u662fFlutter\u56e2\u961f\u63a8\u8350\u7684\u72b6\u6001\u7ba1\u7406\u5e93\uff0c\u5b83\u4f7f\u7528InheritedWidget\u548cBuildContext\u6765\u5171\u4eab\u72b6\u6001\u3002Redux\u662f\u901a\u8fc7\u5355\u5411\u6570\u636e\u6d41\u548c\u7eaf\u51fd\u6570\u6765\u7ba1\u7406\u72b6\u6001\u7684\uff0c\u9002\u7528\u4e8e\u5927\u578b\u5e94\u7528\u548c\u591a\u4eba\u534f\u4f5c\u5f00\u53d1\u3002GetX\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u72b6\u6001\u7ba1\u7406\u5e93\uff0c\u63d0\u4f9b\u4e86\u7c7b\u4f3c\u4e8eProvider\u548cRedux\u7684\u529f\u80fd\uff0c\u4f46\u66f4\u7b80\u6d01\u3001\u6613\u7528\u3002\u9009\u62e9\u5408\u9002\u7684\u72b6\u6001\u7ba1\u7406\u5e93\u53d6\u51b3\u4e8e\u9879\u76ee\u7684\u89c4\u6a21\u3001\u56e2\u961f\u7684\u5f00\u53d1\u7ecf\u9a8c\u548c\u4e2a\u4eba\u7684\u504f\u597d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Flutter\u5e94\u7528\u5f00\u53d1\u4e2d\uff0c\u72b6\u6001\u7ba1\u7406\u662f\u6838\u5fc3\u95ee\u9898\u4e4b\u4e00\uff0c\u56e0\u4e3a\u5b83\u76f4\u63a5\u5f71\u54cd\u5e94\u7528\u7684\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u3002\u72b6\u6001\u7ba1\u7406\u7684\u4e3b\u8981\u89e3\u51b3\u65b9\u6848 [&hellip;]","protected":false},"author":3,"featured_media":107994,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/107991"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=107991"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/107991\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/107994"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=107991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=107991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=107991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}