{"id":88864,"date":"2024-04-07T17:39:33","date_gmt":"2024-04-07T09:39:33","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/88864.html"},"modified":"2024-04-07T17:39:34","modified_gmt":"2024-04-07T09:39:34","slug":"%e4%bd%bf%e7%94%a8react-hook-form%e8%bf%9b%e8%a1%8c%e8%a1%a8%e5%8d%95%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/88864.html","title":{"rendered":"\u4f7f\u7528React Hook Form\u8fdb\u884c\u8868\u5355\u5904\u7406"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/02172816\/b1fdcbed-f54b-4172-b76c-abc3651a2758.webp\" alt=\"\u4f7f\u7528React Hook Form\u8fdb\u884c\u8868\u5355\u5904\u7406\" \/><\/p>\n<p><p>\u4f7f\u7528React Hook Form\u8fdb\u884c\u8868\u5355\u5904\u7406\u53ef\u4ee5\u5927\u5e45\u7b80\u5316\u8868\u5355\u7684\u6570\u636e\u7ba1\u7406\u548c\u9a8c\u8bc1\u8fc7\u7a0b\u3002<strong>React Hook Form\u662f\u4e00\u4e2a\u7075\u6d3b\u3001\u9ad8\u6548\u7684\u8868\u5355\u5e93<\/strong>\uff0c\u5b83\u901a\u8fc7\u4f7f\u7528React Hooks\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u5b9e\u73b0\u4e86\u8f7b\u91cf\u7ea7\u3001\u6027\u80fd\u4f18\u5316\u548c\u6781\u7b80\u7684\u4ee3\u7801\u4f53\u9a8c\u3002React Hook Form\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e<strong>\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u91cd\u65b0\u6e32\u67d3\u3001\u7b80\u5316\u8868\u5355\u9a8c\u8bc1\u3001\u4ee5\u53ca\u66f4\u5bb9\u6613\u96c6\u6210\u7b2c\u4e09\u65b9\u7ec4\u4ef6\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728React Hook Form\u4e2d\uff0c\u4f7f\u7528<code>useForm<\/code>\u8fd9\u4e2a\u81ea\u5b9a\u4e49hook\u5c31\u80fd\u591f\u5feb\u901f\u521b\u5efa\u8868\u5355\u5b9e\u4f8b\uff0c\u5e76\u901a\u8fc7<code>register<\/code>\u51fd\u6570\u6ce8\u518c\u8868\u5355\u57df\u3002\u6ce8\u518c\u8fc7\u7a0b\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5b9a\u4e49\u9a8c\u8bc1\u89c4\u5219\uff0c\u8868\u5355\u503c\u6539\u53d8\u65f6\uff0cReact Hook Form\u4f1a\u81ea\u52a8\u5e94\u7528\u8fd9\u4e9b\u89c4\u5219\u5e76\u63d0\u4f9b\u5373\u65f6\u7684\u9a8c\u8bc1\u53cd\u9988\uff0c\u800c\u65e0\u9700\u7f16\u5199\u5197\u957f\u7684\u9a8c\u8bc1\u903b\u8f91\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001HOOK FORM\u7684\u5feb\u901f\u5165\u95e8<\/h2>\n<\/p>\n<p><p>\u5728\u4ecb\u7ecd\u8868\u5355\u5904\u7406\u7684\u7ec6\u8282\u524d\uff0c\u9996\u5148\u4e86\u89e3\u5982\u4f55\u5feb\u901f\u5f00\u59cb\u4f7f\u7528React Hook Form\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u901a\u8fc7npm\u6216yarn\u5c06\u5176\u5b89\u88c5\u5230\u4f60\u7684\u9879\u76ee\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">npm install react-hook-form<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">yarn add react-hook-form<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5728\u4f60\u7684React\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u5b83\u4e86\u3002<\/p>\n<\/p>\n<p><h3>\u7b80\u5355\u7684\u8868\u5355\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u4ece<code>react-hook-form<\/code>\u5bfc\u5165<code>useForm<\/code>\u8fd9\u4e2ahook\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">import { useForm } from &#039;react-hook-form&#039;;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7<code>useForm<\/code>\u53ef\u4ee5\u83b7\u53d6\u5230\u82e5\u5e72\u51fd\u6570\u548c\u5c5e\u6027\uff0c\u7528\u4e8e\u5904\u7406\u8868\u5355\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">const { register, handleSubmit, watch, errors } = useForm();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u521b\u5efa\u4e00\u4e2a\u8868\u5355\u5e76\u4f7f\u7528<code>register<\/code>\u5c06\u8f93\u5165\u5b57\u6bb5\u4e0eHook Form\u5b9e\u4f8b\u5173\u8054\u8d77\u6765\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">&lt;form onSubmit={handleSubmit(onSubmit)}&gt;<\/p>\n<p>  &lt;input name=&quot;example&quot; defaultValue=&quot;test&quot; ref={register} \/&gt;<\/p>\n<p>  &lt;input type=&quot;submit&quot; \/&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63d0\u4ea4\u8868\u5355\u65f6\uff0c<code>handleSubmit<\/code>\u5c06\u4f1a\u8c03\u7528\u4f60\u63d0\u4f9b\u7684<code>onSubmit<\/code>\u51fd\u6570\uff0c\u5e76\u4f20\u5165\u8868\u5355\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u8868\u5355\u9a8c\u8bc1<\/h2>\n<\/p>\n<p><p>React Hook Form\u7684\u8868\u5355\u9a8c\u8bc1\u662f\u5176\u6838\u5fc3\u7279\u6027\u4e4b\u4e00\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u6ce8\u518c\u8868\u5355\u5b57\u6bb5\u65f6\u901a\u8fc7<code>register<\/code>\u4f20\u5165\u9a8c\u8bc1\u89c4\u5219\uff0c\u8fd9\u4e9b\u89c4\u5219\u662f\u58f0\u660e\u5f0f\u548c\u76f4\u89c2\u7684\u3002<\/p>\n<\/p>\n<p><h3>\u58f0\u660e\u5f0f\u9a8c\u8bc1\u89c4\u5219<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u4e3a\u5404\u4e2a\u8868\u5355\u57df\u6307\u5b9a\u5177\u4f53\u7684\u9a8c\u8bc1\u89c4\u5219\uff0c\u5982\u5fc5\u586b\u3001\u6700\u5927\u957f\u5ea6\u3001\u6a21\u5f0f\u5339\u914d\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">&lt;input<\/p>\n<p>  name=&quot;exampleRequired&quot;<\/p>\n<p>  ref={register({ required: true, maxLength: 10 })}<\/p>\n<p>\/&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u4e3a\u8f93\u5165\u57df\u6dfb\u52a0\u201c\u5fc5\u586b\u201d\u548c\u201c\u6700\u5927\u957f\u5ea6\u201d\u9a8c\u8bc1\u89c4\u5219\u3002<\/p>\n<\/p>\n<p><h3>\u5b9e\u65f6\u9a8c\u8bc1\u53cd\u9988<\/h3>\n<\/p>\n<p><p>\u7531\u4e8eReact Hook Form\u7684\u9a8c\u8bc1\u662f\u57fa\u4e8e\u4e8b\u4ef6\u7684\uff0c\u56e0\u6b64\u5b83\u80fd\u591f\u63d0\u4f9b\u5b9e\u65f6\u7684\u9a8c\u8bc1\u53cd\u9988\u3002\u8fd9\u610f\u5473\u7740\u5f53\u7528\u6237\u5728\u8f93\u5165\u65f6\uff0c\u53ef\u4ee5\u7acb\u5373\u5f97\u5230\u9519\u8bef\u63d0\u793a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">{errors.exampleRequired &amp;&amp; &lt;span&gt;This field is required&lt;\/span&gt;}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u7528\u6237\u8f93\u5165\u65f6\uff0c\u5982\u679c\u53d1\u751f\u9a8c\u8bc1\u9519\u8bef\uff0c\u5c31\u53ef\u4ee5\u7acb\u5373\u5411\u7528\u6237\u663e\u793a\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u6027\u80fd\u4f18\u5316<\/h2>\n<\/p>\n<p><p>React Hook Form\u5728\u6027\u80fd\u4e0a\u6709\u4e86\u5f88\u5927\u7684\u4f18\u5316\uff0c<strong>\u51cf\u5c11\u4e86\u4e0d\u5fc5\u8981\u7684\u7ec4\u4ef6\u91cd\u6e32\u67d3\u6b21\u6570<\/strong>\u3002<\/p>\n<\/p>\n<p><h3>\u51cf\u5c11\u91cd\u6e32\u67d3<\/h3>\n<\/p>\n<p><p>\u7531\u4e8eReact Hook Form\u5229\u7528\u4e86\u4e0d\u53d7\u63a7\u7ec4\u4ef6\u7684\u4f18\u52bf\uff0c\u56e0\u6b64\u5b83\u4e0d\u4f1a\u5728\u8f93\u5165\u8fc7\u7a0b\u4e2d\u5bfc\u81f4\u6574\u4e2a\u8868\u5355\u7684\u91cd\u6e32\u67d3\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528React.memo\u8fdb\u884c\u4f18\u5316<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u590d\u6742\u7684\u8868\u5355\u57df\u7ec4\u4ef6\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>React.memo<\/code>\u6765\u9632\u6b62\u65e0\u5173\u66f4\u6539\u5bfc\u81f4\u7684\u4e0d\u5fc5\u8981\u6e32\u67d3\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u96c6\u6210\u7b2c\u4e09\u65b9\u7ec4\u4ef6<\/h2>\n<\/p>\n<p><p>React Hook Form\u7684\u8bbe\u8ba1\u8003\u8651\u5230\u4e86\u4e0e\u7b2c\u4e09\u65b9\u7ec4\u4ef6\u7684\u96c6\u6210\u3002\u5b83\u63d0\u4f9b\u4e86<code>Controller<\/code>\u7ec4\u4ef6\u6765\u5305\u88c5\u975e\u6807\u51c6\u7684\u8868\u5355\u57df\uff0c\u5982\u81ea\u5b9a\u4e49\u9009\u62e9\u5668\u3001\u52a8\u6001\u5207\u6362\u7684\u8f93\u5165\u6846\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528Controller\u5305\u88c5\u7ec4\u4ef6<\/h3>\n<\/p>\n<p><p>\u5f53\u9700\u8981\u96c6\u6210\u7b2c\u4e09\u65b9\u63a7\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Controller<\/code>\u6765\u4f5c\u4e3a\u8be5\u7ec4\u4ef6\u7684\u5bb9\u5668\uff0c\u4f7f\u5f97\u8fd9\u4e9b\u7ec4\u4ef6\u4e5f\u53ef\u4ee5\u4eab\u53d7\u5230React Hook Form\u63d0\u4f9b\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">&lt;Controller<\/p>\n<p>  as={&lt;YourCustomComponent \/&gt;}<\/p>\n<p>  name=&quot;yourCustomComponentName&quot;<\/p>\n<p>  control={control}<\/p>\n<p>  rules={{ required: true }}<\/p>\n<p>\/&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7<code>Controller<\/code>\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5c06\u7b2c\u4e09\u65b9\u7ec4\u4ef6\u96c6\u6210\u5230\u4f60\u7684\u8868\u5355\u4e2d\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u9ad8\u7ea7\u7528\u4f8b<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u8868\u5355\u5904\u7406\u5916\uff0cReact Hook Form\u8fd8\u652f\u6301\u66f4\u591a\u9ad8\u7ea7\u7528\u4f8b\uff0c\u5982\u8868\u5355\u6570\u7ec4\u5904\u7406\u3001\u6761\u4ef6\u5b57\u6bb5\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u8868\u5355\u6570\u7ec4\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5f53\u4f60\u6709\u4e00\u4e2a\u53ef\u53d8\u957f\u5ea6\u7684\u8868\u5355\u57df\uff0c\u6bd4\u5982\u7528\u6237\u53ef\u4ee5\u6dfb\u52a0\u6216\u5220\u9664\u4e00\u7ec4\u8f93\u5165\u6846\u65f6\uff0cReact Hook Form\u63d0\u4f9b\u4e86<code>useFieldArray<\/code>\u6765\u7b80\u5316\u8fd9\u7c7b\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u6761\u4ef6\u5b57\u6bb5<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u4f60\u53ef\u80fd\u9700\u8981\u6839\u636e\u67d0\u4e2a\u5b57\u6bb5\u7684\u503c\u6765\u51b3\u5b9a\u662f\u5426\u6e32\u67d3\u53e6\u4e00\u4e2a\u5b57\u6bb5\u3002React Hook Form\u5141\u8bb8\u4f60\u901a\u8fc7\u89c2\u5bdf\u7279\u5b9a\u5b57\u6bb5\u7684\u53d8\u5316\u6765\u8f7b\u677e\u7ba1\u7406\u6b64\u7c7b\u6761\u4ef6\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><h2>\u516d\u3001\u7ed3\u8bed<\/h2>\n<\/p>\n<p><p>React Hook Form\u662fReact\u751f\u6001\u4e2d\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u548c\u53d7\u6b22\u8fce\u7684\u5e93\uff0c\u5b83\u901a\u8fc7Hook\u6765\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u800c\u9ad8\u6548\u7684\u8868\u5355\u5904\u7406\u65b9\u5f0f\u3002\u51cf\u5c11\u5197\u4f59\u7684\u4ee3\u7801\u3001\u4f18\u5316\u6027\u80fd\u3001\u7b80\u5316\u590d\u6742\u8868\u5355\u9a8c\u8bc1\uff0c\u4f7f\u5f97\u5f00\u53d1\u4f53\u9a8c\u66f4\u52a0\u6d41\u7545\u3002\u5b9e\u73b0\u5feb\u901f\u3001\u7075\u6d3b\u7684\u8868\u5355\u5904\u7406\u662fReact Hook Form\u6838\u5fc3\u76ee\u6807\u4e4b\u4e00\uff0c\u4f7f\u7528\u5b83\u53ef\u4ee5\u8ba9\u4f60\u6446\u8131\u4f20\u7edf\u8868\u5355\u5904\u7406\u7684\u7e41\u7410\u548c\u6027\u80fd\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><p>\u867d\u7136React Hook Form\u5df2\u7ecf\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u4f46\u5b83\u7684API\u4ecd\u5728\u4e0d\u65ad\u8fdb\u5316\u3002\u4e3a\u4e86\u6700\u5927\u5316\u5730\u5229\u7528\u5b83\u7684\u6f5c\u529b\uff0c\u4f60\u4ecd\u9700\u4e0d\u65ad\u5b66\u4e60\u5176\u65b0\u529f\u80fd\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u4e0d\u7ba1\u4f60\u662f\u521d\u5b66\u8005\u8fd8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u5f00\u53d1\u8005\uff0c\u90fd\u53ef\u4ee5\u4eceReact Hook Form\u4e2d\u83b7\u76ca\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u6211\u53ef\u4ee5\u5728React Hook Form\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u9a8c\u8bc1\u5417\uff1f<\/strong><\/p>\n<p>\u662f\u7684\uff0cReact Hook Form\u5141\u8bb8\u60a8\u4f7f\u7528\u81ea\u5b9a\u4e49\u9a8c\u8bc1\u89c4\u5219\u6765\u9a8c\u8bc1\u8868\u5355\u8f93\u5165\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684\u9a8c\u8bc1\u89c4\u5219\uff0c\u5982\u5fc5\u586b\u3001\u6700\u5927\u957f\u5ea6\u3001\u6700\u5c0f\u957f\u5ea6\u7b49\uff0c\u4e5f\u53ef\u4ee5\u7f16\u5199\u81ea\u5df1\u7684\u9a8c\u8bc1\u51fd\u6570\u6765\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u3002\u8fd9\u4f7f\u5f97\u5bf9\u8868\u5355\u8f93\u5165\u8fdb\u884c\u66f4\u590d\u6742\u7684\u9a8c\u8bc1\u53d8\u5f97\u975e\u5e38\u7075\u6d3b\u548c\u4fbf\u6377\u3002<\/p>\n<p><strong>2. React Hook Form\u9002\u7528\u4e8e\u5927\u578b\u8868\u5355\u5417\uff1f<\/strong><\/p>\n<p>\u662f\u7684\uff0cReact Hook Form\u975e\u5e38\u9002\u7528\u4e8e\u5904\u7406\u5927\u578b\u8868\u5355\u3002\u7531\u4e8e\u4f7f\u7528\u4e86\u65e0\u72b6\u6001\u7ec4\u4ef6\u548c\u8f7b\u91cf\u7ea7\u7684\u94a9\u5b50\u51fd\u6570\uff0c\u5b83\u5177\u6709\u5f88\u597d\u7684\u6027\u80fd\uff0c\u5e76\u4e14\u80fd\u591f\u6709\u6548\u5730\u5904\u7406\u6570\u5341\u4e2a\u751a\u81f3\u4e0a\u767e\u4e2a\u8868\u5355\u5b57\u6bb5\uff0c\u800c\u4e0d\u4f1a\u9020\u6210\u9875\u9762\u7684\u5361\u987f\u6216\u6027\u80fd\u95ee\u9898\u3002<\/p>\n<p><strong>3. React Hook Form\u4e0e\u7b2c\u4e09\u65b9\u5e93\uff08\u5982Material-UI\uff09\u517c\u5bb9\u5417\uff1f<\/strong><\/p>\n<p>\u662f\u7684\uff0cReact Hook Form\u4e0e\u8bb8\u591aUI\u5e93\u548c\u7b2c\u4e09\u65b9\u7ec4\u4ef6\u5e93\u517c\u5bb9\u6027\u826f\u597d\u3002\u60a8\u53ef\u4ee5\u5c06React Hook Form\u4e0e\u6d41\u884c\u7684UI\u5e93\u5982Material-UI\u3001Ant Design\u7b49\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u4fbf\u5feb\u901f\u6784\u5efa\u5177\u6709\u590d\u6742\u8868\u5355\u903b\u8f91\u548c\u9a8c\u8bc1\u7684\u7528\u6237\u754c\u9762\u3002React Hook Form\u63d0\u4f9b\u4e86\u4e0e\u8fd9\u4e9b\u5e93\u7684\u9002\u914d\u5668\u548c\u793a\u4f8b\u4ee3\u7801\uff0c\u5e2e\u52a9\u60a8\u8f7b\u677e\u5730\u96c6\u6210\u5728\u4e00\u8d77\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528React Hook Form\u8fdb\u884c\u8868\u5355\u5904\u7406\u53ef\u4ee5\u5927\u5e45\u7b80\u5316\u8868\u5355\u7684\u6570\u636e\u7ba1\u7406\u548c\u9a8c\u8bc1\u8fc7\u7a0b\u3002React Hook Fo [&hellip;]","protected":false},"author":3,"featured_media":88865,"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\/88864"}],"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=88864"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/88864\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/88865"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=88864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=88864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=88864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}