{"id":159846,"date":"2024-05-08T13:18:18","date_gmt":"2024-05-08T05:18:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/159846.html"},"modified":"2024-05-08T13:18:21","modified_gmt":"2024-05-08T05:18:21","slug":"%e5%89%8d%e7%ab%af-javascript-%e5%a6%82%e4%bd%95%e8%bf%9b%e8%a1%8c%e8%a1%a8%e5%8d%95%e6%a0%a1%e9%aa%8c%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/159846.html","title":{"rendered":"\u524d\u7aef JavaScript \u5982\u4f55\u8fdb\u884c\u8868\u5355\u6821\u9a8c\u529f\u80fd"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26222404\/ea9978ec-69c0-444d-a13f-a6195d2f0ee0.webp\" alt=\"\u524d\u7aef JavaScript \u5982\u4f55\u8fdb\u884c\u8868\u5355\u6821\u9a8c\u529f\u80fd\" \/><\/p>\n<p><p>\u8868\u5355\u6821\u9a8c\u662f\u4efb\u4f55\u6d89\u53ca\u7528\u6237\u8f93\u5165\u7684Web\u5e94\u7528\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u524d\u7aef JavaScript \u8fdb\u884c\u8868\u5355\u6821\u9a8c\u53ef\u4ee5<strong>\u901a\u8fc7\u6dfb\u52a0\u76d1\u542c\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u8f93\u5165\u683c\u5f0f\u3001\u5229\u7528HTML5\u5185\u7f6e\u6821\u9a8c\u4ee5\u53ca\u91c7\u7528\u7b2c\u4e09\u65b9\u6821\u9a8c\u5e93<\/strong>\u5b9e\u73b0\u3002\u91cd\u70b9\u5728\u4e8e\u786e\u4fdd\u7528\u6237\u586b\u5199\u4fe1\u606f\u7684\u6b63\u786e\u6027\uff0c\u9632\u6b62\u9519\u8bef\u6570\u636e\u88ab\u63d0\u4ea4\u5230\u670d\u52a1\u5668\uff0c\u4fc3\u8fdb\u7528\u6237\u4f53\u9a8c\uff0c\u5e76\u51cf\u5c11\u670d\u52a1\u5668\u7aef\u5904\u7406\u65e0\u6548\u6570\u636e\u7684\u8d1f\u62c5\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u901a\u8fc7\u524d\u7aefJavaScript\u6765\u5b9e\u73b0\u8868\u5355\u6821\u9a8c\u7684\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u76d1\u542c\u4e8b\u4ef6\u5904\u7406<\/h3>\n<\/p>\n<p><p>JavaScript\u5141\u8bb8\u6211\u4eec\u901a\u8fc7\u6dfb\u52a0\u4e8b\u4ef6\u76d1\u542c\u5668\u6765\u76d1\u6d4b\u7528\u6237\u7684\u8f93\u5165\u884c\u4e3a\u3002\u8fd9\u4e9b\u4e8b\u4ef6\u5305\u62ec\u4f46\u4e0d\u4ec5\u9650\u4e8e<code>input<\/code>\u3001<code>change<\/code>\u548c<code>submit<\/code>\u3002\u5f53\u7528\u6237\u4e0e\u8868\u5355\u4ea4\u4e92\u65f6\uff0c\u4f60\u53ef\u4ee5\u5229\u7528\u8fd9\u4e9b\u4e8b\u4ef6\u6765\u5b9e\u73b0\u52a8\u6001\u6821\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>1. \u5904\u7406\u8f93\u5165\u4e8b\u4ef6<\/h4>\n<\/p>\n<p><p>\u5f53\u7528\u6237\u5728\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u6587\u5b57\u7684\u65f6\u5019\uff0c<code>input<\/code>\u4e8b\u4ef6\u4f1a\u88ab\u89e6\u53d1\u3002\u4f60\u53ef\u4ee5\u4e3a\u8f93\u5165\u6846\u7ed1\u5b9a\u8be5\u4e8b\u4ef6\u76d1\u542c\u5668\uff0c\u5e76\u5728\u56de\u8c03\u51fd\u6570\u4e2d\u5b9e\u73b0\u5b9e\u65f6\u6821\u9a8c\u903b\u8f91\u3002\u901a\u8fc7\u5b9e\u65f6\u53cd\u9988\uff0c\u7528\u6237\u53ef\u4ee5\u7acb\u523b\u770b\u5230\u8f93\u5165\u662f\u5426\u6ee1\u8db3\u8981\u6c42\u3002<\/p>\n<\/p>\n<p><h4>2. \u63d0\u4ea4\u524d\u6821\u9a8c<\/h4>\n<\/p>\n<p><p>\u5728\u8868\u5355\u63d0\u4ea4\u4e4b\u524d\u8fdb\u884c\u6821\u9a8c\u53ef\u4ee5\u963b\u6b62\u9519\u8bef\u6570\u636e\u7684\u4e0a\u4f20\u3002<code>submit<\/code>\u4e8b\u4ef6\u53ef\u4ee5\u5728\u7528\u6237\u5c1d\u8bd5\u63d0\u4ea4\u8868\u5355\u65f6\u89e6\u53d1\u3002\u4f60\u53ef\u4ee5\u4e3a\u8868\u5355\u5143\u7d20\u6dfb\u52a0<code>submit<\/code>\u4e8b\u4ef6\u7684\u76d1\u542c\u5668\uff0c\u5e76\u5728\u7528\u6237\u63d0\u4ea4\u8868\u5355\u4e4b\u524d\u8fdb\u884c\u5168\u9762\u7684\u6821\u9a8c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u8868\u5355\u6821\u9a8c\u4e2d\u7684\u6709\u529b\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5b9a\u4e49\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5339\u914d\u89c4\u5219\uff0c\u7528\u4e8e\u590d\u6742\u7684\u8f93\u5165\u683c\u5f0f\u6821\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>1. \u683c\u5f0f\u5339\u914d<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u5bf9\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u683c\u5f0f\u8fdb\u884c\u7cbe\u786e\u5339\u914d\uff0c\u5982\u7535\u5b50\u90ae\u4ef6\u3001\u7535\u8bdd\u53f7\u7801\u3001\u5bc6\u7801\u5f3a\u5ea6\u7b49\u3002<\/p>\n<\/p>\n<p><h4>2. \u5b9e\u65f6\u53cd\u9988<\/h4>\n<\/p>\n<p><p>\u7ed3\u5408\u4e8b\u4ef6\u5904\u7406\u5668\uff0c\u53ef\u4ee5\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u4e3a\u7528\u6237\u63d0\u4f9b\u5b9e\u65f6\u8f93\u5165\u6821\u9a8c\u7684\u53cd\u9988\uff0c\u589e\u5f3a\u6821\u9a8c\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001HTML5\u5185\u7f6e\u6821\u9a8c<\/h3>\n<\/p>\n<p><p>HTML5\u5f15\u5165\u4e86\u591a\u79cd\u8868\u5355\u6821\u9a8c\u673a\u5236\uff0c\u5982\u8f93\u5165\u7c7b\u578b\uff08<code>type<\/code>\uff09\u3001\u5fc5\u586b\u5b57\u6bb5\uff08<code>required<\/code>\uff09\u3001\u6a21\u5f0f\u5339\u914d\uff08<code>pattern<\/code>\uff09\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. \u5229\u7528\u7c7b\u578b\u6821\u9a8c<\/h4>\n<\/p>\n<p><p>HTML5\u4e3a<code>input<\/code>\u5143\u7d20\u63d0\u4f9b\u4e86\u591a\u79cd\u7c7b\u578b\uff0c\u5982<code>em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l<\/code>\u3001<code>url<\/code>\u3001<code>number<\/code>\u7b49\uff0c\u4e0e\u4e4b\u76f8\u5bf9\u5e94\uff0c\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u4e3a\u5176\u6dfb\u52a0\u57fa\u672c\u7684\u683c\u5f0f\u6821\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u5c5e\u6027\u8fdb\u884c\u6821\u9a8c<\/h4>\n<\/p>\n<p><p>HTML5\u8fd8\u652f\u6301\u5982<code>min<\/code>\u3001<code>max<\/code>\u3001<code>maxlength<\/code>\u3001<code>pattern<\/code>\u7b49\u5c5e\u6027\uff0c\u4f7f\u5f97\u5bf9\u8f93\u5165\u5185\u5bb9\u7684\u9650\u5236\u66f4\u52a0\u7b80\u5355\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7b2c\u4e09\u65b9\u6821\u9a8c\u5e93<\/h3>\n<\/p>\n<p><p>\u7531\u4e8e\u624b\u52a8\u5b9e\u73b0\u590d\u6742\u7684\u8868\u5355\u6821\u9a8c\u903b\u8f91\u53ef\u80fd\u975e\u5e38\u7e41\u7410\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u7b2c\u4e09\u65b9\u5e93\uff0c\u5982jQuery Validate\u3001Parsley.js\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. \u7b80\u5316\u6821\u9a8c\u6d41\u7a0b<\/h4>\n<\/p>\n<p><p>\u7b2c\u4e09\u65b9\u6821\u9a8c\u5e93\u901a\u5e38\u63d0\u4f9b\u4e86\u7b80\u6d01\u7684API\u548c\u5e7f\u6cdb\u7684\u6821\u9a8c\u89c4\u5219\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u96c6\u6210\u548c\u4f7f\u7528\u8868\u5355\u6821\u9a8c\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>2. \u81ea\u5b9a\u4e49\u6821\u9a8c\u89c4\u5219<\/h4>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5e93\u901a\u5e38\u4e5f\u5141\u8bb8\u5f00\u53d1\u8005\u5b9a\u4e49\u81ea\u5df1\u7684\u6821\u9a8c\u89c4\u5219\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7ed3\u5408\u540e\u7aef\u6821\u9a8c<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u524d\u7aef\u6821\u9a8c\u53ef\u4ee5\u63d0\u4f9b\u5373\u65f6\u53cd\u9988\uff0c\u4f46\u540e\u7aef\u6821\u9a8c\u4ecd\u7136\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\uff0c\u5b83\u662f\u9632\u6b62\u6076\u610f\u7528\u6237\u63d0\u4ea4\u65e0\u6548\u6570\u636e\u7684\u6700\u540e\u4e00\u9053\u9632\u7ebf\u3002<\/p>\n<\/p>\n<p><h4>1. \u53cc\u91cd\u6821\u9a8c<\/h4>\n<\/p>\n<p><p>\u5373\u4fbf\u524d\u7aef\u5b8c\u6210\u4e86\u8be6\u5c3d\u7684\u6821\u9a8c\uff0c\u540e\u7aef\u540c\u6837\u9700\u8981\u68c0\u67e5\u6570\u636e\u7684\u6709\u6548\u6027\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5408\u6cd5\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<p><h4>2. \u6821\u9a8c\u903b\u8f91\u4e00\u81f4\u6027<\/h4>\n<\/p>\n<p><p>\u5c3d\u91cf\u4fdd\u6301\u524d\u540e\u7aef\u4f7f\u7528\u7684\u6821\u9a8c\u903b\u8f91\u4e00\u81f4\uff0c\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u7528\u6237\u5728\u524d\u7aef\u901a\u8fc7\u6821\u9a8c\u540e\uff0c\u56e0\u540e\u7aef\u6821\u9a8c\u5931\u8d25\u800c\u611f\u5230\u56f0\u60d1\u3002<\/p>\n<\/p>\n<p><p>\u7f16\u5199\u8868\u5355\u6821\u9a8c\u529f\u80fd\u65f6\uff0c<strong>\u9700\u8981\u517c\u987e\u7528\u6237\u4f53\u9a8c\u548c\u6570\u636e\u5b89\u5168<\/strong>\u3002\u6b64\u5916\uff0c\u6709\u6548\u7684\u8868\u5355\u6821\u9a8c\u6d41\u7a0b\u53ef\u4ee5\u964d\u4f4e\u670d\u52a1\u5668\u7aef\u5904\u7406\u4e0d\u5fc5\u8981\u6570\u636e\u7684\u8d1f\u62c5\uff0c\u63d0\u5347\u6574\u4f53\u5e94\u7528\u6027\u80fd\u3002\u901a\u8fc7\u5404\u79cd\u524d\u7aef\u6280\u672f\uff0c\u7ed3\u5408\u9002\u5f53\u7684\u7528\u6237\u53cd\u9988\u548c\u540e\u7aef\u6821\u9a8c\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u7528\u6237\u8868\u5355\u6570\u636e\u7684\u8d28\u91cf\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u8868\u5355\u6821\u9a8c\u529f\u80fd\u6709\u54ea\u4e9b\u5e38\u89c1\u65b9\u6cd5\uff1f<\/strong><\/p>\n<p>\u5e38\u89c1\u7684\u8868\u5355\u6821\u9a8c\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u539f\u751f JavaScript \u7f16\u5199\u6821\u9a8c\u903b\u8f91\uff0c\u4f7f\u7528 HTML5 \u8868\u5355\u5c5e\u6027\u548c\u9a8c\u8bc1\u89c4\u5219\uff0c\u4ee5\u53ca\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6216\u6846\u67b6\u6765\u7b80\u5316\u6821\u9a8c\u8fc7\u7a0b\u3002\u539f\u751f JavaScript \u7684\u6821\u9a8c\u903b\u8f91\u901a\u5e38\u4f1a\u901a\u8fc7\u4e8b\u4ef6\u76d1\u542c\u548c\u6761\u4ef6\u5224\u65ad\u6765\u5b9e\u73b0\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6821\u9a8c\u89c4\u5219\u548c\u63d0\u793a\u4fe1\u606f\u3002HTML5 \u8868\u5355\u5c5e\u6027\u548c\u9a8c\u8bc1\u89c4\u5219\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e input \u6807\u7b7e\u7684\u7c7b\u578b\u3001\u6700\u5c0f\u503c\u3001\u6700\u5927\u503c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u5c5e\u6027\u6765\u5b9e\u73b0\u6821\u9a8c\uff0c\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u8fdb\u884c\u6821\u9a8c\u5e76\u663e\u793a\u76f8\u5e94\u7684\u9519\u8bef\u4fe1\u606f\u3002\u7b2c\u4e09\u65b9\u5e93\u6216\u6846\u67b6\u5982 jQuery Validation\u3001Vee-validate\u3001Formik \u7b49\u53ef\u4ee5\u63d0\u4f9b\u66f4\u9ad8\u7ea7\u3001\u66f4\u6613\u7528\u7684\u8868\u5355\u6821\u9a8c\u529f\u80fd\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u4f7f\u7528 JavaScript \u8fdb\u884c\u8868\u5355\u6821\u9a8c\uff1f<\/strong><\/p>\n<p>\u4f7f\u7528 JavaScript \u8fdb\u884c\u8868\u5355\u6821\u9a8c\u901a\u5e38\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5148\u83b7\u53d6\u8868\u5355\u5143\u7d20\u548c\u9700\u8981\u6821\u9a8c\u7684\u8f93\u5165\u5b57\u6bb5\uff0c\u6dfb\u52a0\u4e8b\u4ef6\u76d1\u542c\uff0c\u5f53\u8868\u5355\u63d0\u4ea4\u6216\u8f93\u5165\u5b57\u6bb5\u5931\u53bb\u7126\u70b9\u65f6\u89e6\u53d1\u6821\u9a8c\u51fd\u6570\u3002\u5728\u6821\u9a8c\u51fd\u6570\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5404\u79cd\u903b\u8f91\u548c\u6761\u4ef6\u5224\u65ad\u6765\u9a8c\u8bc1\u8f93\u5165\u5b57\u6bb5\u662f\u5426\u7b26\u5408\u8981\u6c42\u3002\u5982\u679c\u6821\u9a8c\u5931\u8d25\uff0c\u53ef\u4ee5\u663e\u793a\u76f8\u5e94\u7684\u9519\u8bef\u63d0\u793a\u4fe1\u606f\uff0c\u5e76\u963b\u6b62\u8868\u5355\u7684\u63d0\u4ea4\u6216\u7ee7\u7eed\u6267\u884c\u5176\u4ed6\u64cd\u4f5c\u3002\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6570\u503c\u6bd4\u8f83\u7b49\u65b9\u5f0f\u5bf9\u8f93\u5165\u8fdb\u884c\u6821\u9a8c\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6821\u9a8c\u51fd\u6570\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u6821\u9a8c\u903b\u8f91\u3002<\/p>\n<p><strong>3. HTML5 \u8868\u5355\u5c5e\u6027\u548c\u9a8c\u8bc1\u89c4\u5219\u5982\u4f55\u8fdb\u884c\u8868\u5355\u6821\u9a8c\uff1f<\/strong><\/p>\n<p>HTML5 \u63d0\u4f9b\u4e86\u4e00\u4e9b\u8868\u5355\u5c5e\u6027\u548c\u9a8c\u8bc1\u89c4\u5219\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b9e\u73b0\u7b80\u5355\u7684\u8868\u5355\u6821\u9a8c\u3002\u53ef\u4ee5\u4f7f\u7528 required \u5c5e\u6027\u6765\u8868\u793a\u8f93\u5165\u5b57\u6bb5\u4e3a\u5fc5\u586b\u9879\uff0c\u5f53\u8f93\u5165\u4e3a\u7a7a\u65f6\u6d4f\u89c8\u5668\u4f1a\u663e\u793a\u76f8\u5e94\u7684\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528 type \u5c5e\u6027\u6765\u8bbe\u7f6e\u8f93\u5165\u5b57\u6bb5\u7684\u7c7b\u578b\uff0c\u5982email\u3001url\u3001number\u7b49\uff0c\u5728\u7528\u6237\u8f93\u5165\u65f6\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u8fdb\u884c\u683c\u5f0f\u6821\u9a8c\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528 pattern \u5c5e\u6027\u6765\u6307\u5b9a\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u7528\u4e8e\u5bf9\u8f93\u5165\u5b57\u6bb5\u8fdb\u884c\u6821\u9a8c\u3002\u5982\u679c\u6821\u9a8c\u5931\u8d25\uff0c\u6d4f\u89c8\u5668\u4f1a\u663e\u793a pattern \u5c5e\u6027\u4e2d\u6307\u5b9a\u7684\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u3002\u4f7f\u7528\u8fd9\u4e9b\u5c5e\u6027\u548c\u89c4\u5219\u53ef\u4ee5\u7b80\u5316\u8868\u5355\u6821\u9a8c\u7684\u4ee3\u7801\u91cf\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8868\u5355\u6821\u9a8c\u662f\u4efb\u4f55\u6d89\u53ca\u7528\u6237\u8f93\u5165\u7684Web\u5e94\u7528\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u524d\u7aef JavaScript \u8fdb\u884c\u8868\u5355\u6821\u9a8c\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u76d1\u542c [&hellip;]","protected":false},"author":3,"featured_media":159852,"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\/159846"}],"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=159846"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/159846\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/159852"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=159846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=159846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=159846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}