{"id":90827,"date":"2026-08-06T03:57:10","date_gmt":"2026-08-05T19:57:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/90827.html"},"modified":"2026-08-06T03:57:10","modified_gmt":"2026-08-05T19:57:10","slug":"axios-%e6%ba%90%e7%a0%81%e8%a7%a3%e6%9e%90%ef%bc%9a%e4%bb%8e%e5%8f%91%e8%b5%b7%e5%88%b0%e5%93%8d%e5%ba%94%ef%bc%8c%e5%ae%8c%e6%95%b4%e8%af%b7%e6%b1%82%e9%93%be%e8%b7%af%e5%89%96%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/90827.html","title":{"rendered":"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790"},"content":{"rendered":"<p>\u5728\u8fd9\u7bc7\u5185\u5bb9&#xff0c;\u6211\u5c06\u62c6\u89e3 Axios \u7684\u6574\u4e2a\u6d41\u7a0b&#xff0c;\u4ece\u53d1\u9001\u8bf7\u6c42\u5230\u63a5\u6536\u54cd\u5e94\u6570\u636e\u3002\u6574\u4e2a\u8fc7\u7a0b\u62c6\u6210\u4e86\u4e00\u6761\u5b8c\u6574\u7684\u94fe\u8def&#xff0c;\u65b9\u4fbf\u5927\u5bb6\u7406\u89e3\u6bcf\u4e00\u6b65\u90fd\u5728\u5e72\u4ec0\u4e48\u3002<\/p>\n<h3>\u4e00\u3001\u53d1\u8d77\u8bf7\u6c42\u7684\u4e24\u79cd\u65b9\u5f0f<\/h3>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u7684\u7b2c\u4e00\u6b65&#xff0c;\u5c31\u662f\u7528\u6237\u901a\u8fc7 Axios \u53d1\u8d77\u4e00\u4e2a\u8bf7\u6c42\u3002\u8fd9\u91cc\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;<\/p>\n<li>\u76f4\u63a5\u8c03\u7528 axios() \u51fd\u6570&#xff0c;\u4f20\u5165\u914d\u7f6e\u5bf9\u8c61<\/li>\n<li>\u8c03\u7528 axios.get()\u3001axios.post() \u8fd9\u7c7b\u65b9\u6cd5&#xff0c;\u6216\u8005\u7528 axios.create() \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b9e\u4f8b<\/li>\n<p>\u4e0d\u7ba1\u4f60\u7528\u7684\u662f\u54ea\u79cd\u65b9\u5f0f&#xff0c;\u6700\u7ec8\u90fd\u4f1a\u8d70\u5230\u540c\u4e00\u4e2a\u5730\u65b9\u2014\u2014createInstance \u8fd9\u4e2a\u5de5\u5382\u65b9\u6cd5\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195700-6a73958c50a23.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e8c\u3001createInstance \u5de5\u5382\u65b9\u6cd5<\/h3>\n<p>\u5f53\u6211\u4eec\u8c03\u7528 createInstance \u7684\u65f6\u5019&#xff0c;\u5b83\u4f1a\u53bb\u8bfb\u53d6\u6211\u4eec\u4f20\u5165\u7684 config \u914d\u7f6e\u4fe1\u606f\u3002<\/p>\n<p>\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d&#xff0c;\u5982\u679c\u4f60\u4f20\u5165\u4e86\u65b0\u7684\u914d\u7f6e&#xff0c;\u6bd4\u5982\u81ea\u5b9a\u4e49\u4e86 baseURL&#xff0c;\u90a3\u4e48\u5de5\u5382\u65b9\u6cd5\u5c31\u4f1a\u628a\u8fd9\u4e9b\u65b0\u914d\u7f6e\u548c\u9ed8\u8ba4\u914d\u7f6e\u8fdb\u884c\u5408\u5e76\u8986\u76d6\u3002&#xff08;\u7b2c10\u884c&#xff09;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195700-6a73958c69738.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5904\u7406\u5b8c\u914d\u7f6e\u4e4b\u540e&#xff0c;\u5de5\u5382\u65b9\u6cd5\u5c31\u4f1a\u53bb\u8c03\u7528 Axios.prototype \u4e0a\u7684 request \u65b9\u6cd5\u2014\u2014\u4e5f\u5c31\u662f\u771f\u6b63\u5e72\u6d3b\u7684\u90a3\u4e2a\u65b9\u6cd5\u3002<\/p>\n<h3>\u4e09\u3001request \u65b9\u6cd5\u4e0e\u8bf7\u6c42\u94fe<\/h3>\n<p>\u8c03\u7528 request \u65b9\u6cd5\u4e4b\u540e&#xff0c;\u6574\u4e2a\u8bf7\u6c42\u5c31\u8fdb\u5165\u4e86\u6838\u5fc3\u5904\u7406\u9636\u6bb5\u3002request \u65b9\u6cd5\u7684\u4f5c\u7528\u662f\u4ec0\u4e48\u5462&#xff1f;\u5b83\u7684\u6838\u5fc3\u529f\u80fd\u5c31\u662f\u4e32\u8054\u6574\u4e2a\u8bf7\u6c42\u94fe\u2014\u2014\u628a\u8bf7\u6c42\u62e6\u622a\u5668\u3001\u54cd\u5e94\u62e6\u622a\u5668\u3001\u8fd8\u6709\u771f\u6b63\u7684\u7f51\u7edc\u8bf7\u6c42&#xff08;dispatchRequest&#xff09;\u6309\u987a\u5e8f\u4e32\u8d77\u6765\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195700-6a73958ca9bfb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5b83\u5177\u4f53\u662f\u600e\u4e48\u505a\u7684\u5462&#xff1f;\u5b83\u5185\u90e8\u6709\u4e00\u4e2a\u6570\u7ec4\u53eb chain&#xff0c;\u4e5f\u5c31\u662f\u8bf7\u6c42\u94fe\u3002request \u65b9\u6cd5\u4f1a\u6309\u7167\u987a\u5e8f\u628a\u8bf7\u6c42\u62e6\u622a\u5668\u63d2\u5165\u5230\u8fd9\u4e2a\u94fe\u5f53\u4e2d&#xff0c;\u7136\u540e\u518d\u628a dispatchRequest \u4e5f\u653e\u8fdb\u53bb\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195700-6a73958cf410e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5982\u679c\u4f60\u6709\u8bbe\u7f6e\u8bf7\u6c42\u62e6\u622a\u5668\u6216\u8005\u54cd\u5e94\u62e6\u622a\u5668\u7684\u8bdd&#xff0c;\u5b83\u5c31\u4f1a\u5728\u8fd9\u4e00\u6b65\u505a\u76f8\u5e94\u7684\u5904\u7406\u3002<\/p>\n<h3>\u56db\u3001\u8bf7\u6c42\u62e6\u622a\u5668<\/h3>\n<p>\u5728\u8bf7\u6c42\u771f\u6b63\u53d1\u51fa\u53bb\u4e4b\u524d&#xff0c;\u4f1a\u5148\u8fdb\u5165\u8bf7\u6c42\u62e6\u622a\u5668\u3002<br \/>\n\u5728\u8bf7\u6c42\u62e6\u622a\u5668\u91cc\u9762&#xff0c;\u6211\u4eec\u53ef\u80fd\u4f1a\u505a\u8fd9\u4e9b\u4e8b\u60c5&#xff1a;<\/p>\n<ul>\n<li>\u628a\u8bf7\u6c42\u5934\u8bbe\u7f6e\u5f97\u66f4\u5b8c\u6574<\/li>\n<li>\u5bf9\u8bf7\u6c42\u7684\u6570\u636e\u505a\u4e00\u4e9b\u9884\u5904\u7406<\/li>\n<li>\u6bd4\u5982\u6dfb\u52a0 token\u3001\u4fee\u6539 content-type \u7b49\u7b49<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195701-6a73958dc30f8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195701-6a73958dd823b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8fd9\u4e00\u6b65\u7684\u76ee\u7684&#xff0c;\u5c31\u662f\u5728\u8bf7\u6c42\u53d1\u51fa\u4e4b\u524d&#xff0c;\u5bf9\u8bf7\u6c42\u505a\u6700\u540e\u7684\u201c\u52a0\u5de5\u201d\u3002<\/li>\n<\/ul>\n<p>\u6ce8\u610f&#xff1a; \u5982\u679c\u6dfb\u52a0\u4e86\u591a\u4e2a\u8bf7\u6c42\u62e6\u622a\u5668&#xff0c;\u5b83\u4eec\u7684\u6267\u884c\u987a\u5e8f\u662f\u540e\u6dfb\u52a0\u7684\u5148\u6267\u884c\u3002\u5728request\u65b9\u6cd5\u6784\u5efa chain \u6570\u7ec4\u7684\u65f6\u5019&#xff0c;\u4f1a\u4ece\u540e\u5f80\u524d\u904d\u5386\u8bf7\u6c42\u62e6\u622a\u5668\u5217\u8868&#xff0c;\u5c06\u6bcf\u5bf9 [fulfilled, rejected] \u7528unshift\u63d2\u5165\u5230 chain \u7684\u5934\u90e8&#xff0c;\u6240\u4ee5\u540e\u6dfb\u52a0\u7684\u8bf7\u6c42\u62e6\u622a\u5668\u4f1a\u5148\u6267\u884c\u3002&#xff08;\u4e5f\u5c31\u662f\u4e09\u6240\u63d0\u5230\u7684\u8fc7\u7a0b&#xff09;<\/p>\n<h3>\u4e94\u3001transformRequest \u2014\u2014 \u6570\u636e\u9884\u5904\u7406<\/h3>\n<p>\u8bf7\u6c42\u62e6\u622a\u5668\u5904\u7406\u5b8c\u4e4b\u540e&#xff0c;\u8fdb\u5165 dispatchRequest\u3002\u5728 dispatchRequest \u5185\u90e8&#xff0c;\u4f1a\u8c03\u7528transformData()\u5bf9\u8bf7\u6c42\u6570\u636e\u8fdb\u884c transformRequest \u8f6c\u6362\u5904\u7406&#xff0c;\u6bd4\u5982\u5e8f\u5217\u5316 JSON\u3001\u8bbe\u7f6e Content-Type \u7b49\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u4e3b\u8981\u505a\u7684\u662f\u4ec0\u4e48\u5462&#xff1f;\u5b83\u4f1a\u5bf9\u6211\u4eec\u4f20\u5165\u7684\u6570\u636e\u8fdb\u884c\u9884\u5904\u7406&#xff0c;\u6bd4\u5982&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u6211\u4eec\u4f20\u7684\u662f\u4e00\u4e2a\u5bf9\u8c61&#xff0c;\u6216\u8005\u662f\u4e00\u4e2a JSON \u683c\u5f0f\u7684\u6570\u636e&#xff0c;\u6216\u8005 URL Encoding \u683c\u5f0f\u7684\u6570\u636e&#xff0c;\u90a3\u4e48\u5b83\u5c31\u4f1a\u5728\u8bf7\u6c42\u5934\u91cc\u9762\u8bbe\u7f6e content-type&#xff0c;\u544a\u8bc9\u6d4f\u89c8\u5668\u6211\u4eec\u4f20\u7684\u662f\u4ec0\u4e48\u683c\u5f0f<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195702-6a73958e05341.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u53e6\u5916\u5b83\u4e5f\u53ef\u80fd\u5bf9\u6570\u636e\u8fdb\u884c URL \u7f16\u7801\u62fc\u63a5\u4e4b\u7c7b\u7684\u5904\u7406<\/li>\n<\/ul>\n<p>\u7b80\u5355\u6765\u8bf4&#xff0c;\u5c31\u662f\u8ba9\u8bf7\u6c42\u6570\u636e\u4ee5\u6b63\u786e\u7684\u683c\u5f0f\u53d1\u9001\u7ed9\u540e\u7aef\u3002<\/p>\n<h3>\u516d\u3001dispatchRequest \u2014\u2014 \u771f\u6b63\u53d1\u9001\u8bf7\u6c42<\/h3>\n<p>\u6570\u636e\u9884\u5904\u7406\u5b8c\u6210\u4e4b\u540e&#xff0c;\u5c31\u8fdb\u5165\u5230 dispatchRequest \u4e86\u3002<\/p>\n<p>\u4f46\u662f\u8981\u6ce8\u610f&#xff1a;\u771f\u6b63\u53d1\u9001\u8bf7\u6c42\u7684\u5e76\u4e0d\u662f dispatchRequest \u672c\u8eab\u3002<\/p>\n<p>dispatchRequest \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\u5462&#xff1f;\u5b83\u4e3b\u8981\u662f\u505a\u4e24\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\n<p>\u6700\u7ec8\u5408\u5e76 headers\u2014\u2014\u628a\u4e4b\u524d\u8bbe\u7f6e\u7684\u5404\u79cd\u8bf7\u6c42\u5934\u5408\u5e76\u5230\u4e00\u8d77<\/p>\n<\/li>\n<li>\n<p>\u8c03\u7528 adapter\u2014\u2014\u8fd9\u4e2a adapter \u624d\u662f\u771f\u6b63\u6267\u884c\u7f51\u7edc\u8bf7\u6c42\u7684\u51fd\u6570<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195702-6a73958e66a0b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<h3>\u4e03\u3001adapter \u2014\u2014 \u6839\u636e\u73af\u5883\u9009\u62e9\u8bf7\u6c42\u65b9\u5f0f<\/h3>\n<p>\u90a3\u4e48 adapter \u662f\u600e\u4e48\u53d1\u9001\u8bf7\u6c42\u7684\u5462&#xff1f;<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u73af\u5883\u4e0b&#xff0c;\u5b83\u7528\u7684\u662f XMLHttpRequest&#xff08;\u4e5f\u5c31\u662f XHR \u5bf9\u8c61&#xff09;\u3002\u5728 Node.js \u73af\u5883\u4e0b&#xff0c;\u5b83\u4f1a\u7528\u5bf9\u5e94\u7684 HTTP \u6a21\u5757\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195702-6a73958eb1f7e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5b83\u4f1a\u6839\u636e\u6211\u4eec\u8fd0\u884c\u7684\u73af\u5883\u6765\u9009\u62e9\u5408\u9002\u7684 adapter&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u662f\u5728\u6d4f\u89c8\u5668\u91cc\u8fd0\u884c&#xff0c;\u5c31\u9009 XHR<\/li>\n<li>\u5982\u679c\u662f\u5728 Node.js \u91cc\u8fd0\u884c&#xff0c;\u5c31\u9009 Node.js \u7684 HTTP \u6a21\u5757<\/li>\n<\/ul>\n<p>\u5f53\u7136&#xff0c;\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7 adapter \u5b57\u6bb5\u81ea\u5df1\u53bb\u624b\u52a8\u914d\u7f6e&#xff0c;\u6307\u5b9a\u7528\u54ea\u4e00\u4e2a\u3002\u5982\u679c\u6211\u4eec\u6ca1\u6709\u624b\u52a8\u914d\u7f6e\u7684\u8bdd&#xff0c;Axios \u5c31\u4f1a\u6839\u636e\u8fd0\u884c\u73af\u5883\u81ea\u52a8\u9009\u62e9\u5408\u9002\u7684 adapter\u3002<\/p>\n<p>\u6ce8\u610f&#xff0c;XMLHttpRequest \u672c\u8eab\u5e76\u4e0d\u662f Promise&#xff0c;\u662f Axios \u7684 adapter \u628a\u5b83\u5c01\u88c5\u6210\u4e86 Promise \u8fd4\u56de\u7ed9\u6211\u4eec\u3002<\/p>\n<h3>\u516b\u3001\u8bf7\u6c42\u6210\u529f\u4e0e\u5931\u8d25<\/h3>\n<p>\u5f53 adapter \u53d1\u9001\u5b8c\u8bf7\u6c42\u4e4b\u540e&#xff0c;\u5b83\u4f1a\u8fd4\u56de\u4e00\u4e2a Promise \u5bf9\u8c61\u3002<\/p>\n<p>\u8fd9\u4e2a Promise \u7684\u6210\u529f\u72b6\u6001\u53eb fulfilled&#xff0c;\u5931\u8d25\u72b6\u6001\u53eb rejected\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195703-6a73958f787dd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6210\u529f\u7684\u5224\u65ad\u6807\u51c6\u662f\u4ec0\u4e48&#xff1f; \u5c31\u662f\u8fd4\u56de\u7684 HTTP \u72b6\u6001\u7801\u5fc5\u987b\u5728 200 \u5230 299 \u4e4b\u95f4&#xff0c;\u4e5f\u5c31\u662f\u5927\u4e8e\u7b49\u4e8e 200 \u4e14\u5c0f\u4e8e 300&#xff0c;\u8fd9\u4e2a\u8303\u56f4\u624d\u7b97\u8bf7\u6c42\u6210\u529f\u3002\u5982\u679c\u4e0d\u5728\u8fd9\u4e2a\u8303\u56f4\u4e4b\u5185&#xff0c;\u90a3\u5c31\u7b97\u5931\u8d25\u2014\u2014\u53ef\u80fd\u662f\u7f51\u7edc\u9519\u8bef\u3001\u8d85\u65f6\u3001\u72b6\u6001\u7801\u8d85\u51fa\u8303\u56f4\u7b49\u7b49\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195703-6a73958fad9a6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195704-6a73959036809.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u6210\u529f\u4e4b\u540e<\/h4>\n<p>\u5982\u679c\u8bf7\u6c42\u6210\u529f\u4e86&#xff0c;\u5c31\u4f1a\u6267\u884c transformResponse&#xff0c;\u5bf9\u54cd\u5e94\u6570\u636e\u8fdb\u884c\u8f6c\u6362\u5904\u7406\u3002\u6bd4\u5982\u628a\u540e\u7aef\u8fd4\u56de\u7684 JSON \u5b57\u7b26\u4e32\u8f6c\u6362\u6210 JavaScript \u5bf9\u8c61&#xff0c;\u65b9\u4fbf\u6211\u4eec\u540e\u7eed\u4f7f\u7528\u3002<\/p>\n<h4>\u5931\u8d25\u4e4b\u540e<\/h4>\n<p>\u5982\u679c\u8bf7\u6c42\u5931\u8d25\u4e86&#xff0c;\u76f4\u63a5\u8fdb\u5165 rejected \u5206\u652f&#xff0c;\u7136\u540e\u8d70\u54cd\u5e94\u62e6\u622a\u5668\u7684 onRejected&#xff0c;\u6216\u8005\u76f4\u63a5\u62a5\u9519\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195704-6a73959053cb7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e5d\u3001\u4e3b\u52a8\u53d6\u6d88\u8bf7\u6c42&#xff08;\u7279\u522b\u6ce8\u610f&#xff09;<\/h3>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e2a\u7279\u522b\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9\u2014\u2014\u4e3b\u52a8\u53d6\u6d88\u8bf7\u6c42\u3002<\/p>\n<p>\u5982\u679c\u6211\u4eec\u662f\u4e3b\u52a8\u64a4\u9500\u6216\u8005\u4e2d\u65ad\u4e00\u4e2a\u8bf7\u6c42&#xff0c;\u6bd4\u5982\u7528\u4e86 AbortController \u6765\u53d6\u6d88\u8bf7\u6c42&#xff0c;\u90a3\u4e48\u5b83\u4f1a\u76f4\u63a5\u8fdb\u5165\u5230 rejected \u5206\u652f&#xff0c;\u629b\u51fa\u4e00\u4e2a CancelError \u9519\u8bef\u3002<\/p>\n<p>\u5173\u952e\u533a\u522b\u6765\u4e86&#xff1a;<\/p>\n<ul>\n<li>\u88ab\u52a8\u89e6\u53d1\u7684\u9519\u8bef&#xff08;\u6bd4\u5982\u7f51\u7edc\u9519\u8bef\u3001\u8d85\u65f6\u3001\u72b6\u6001\u7801\u4e0d\u5bf9&#xff09;\u2192 \u4f1a\u8fdb\u5165\u54cd\u5e94\u62e6\u622a\u5668\u7684\u5931\u8d25\u56de\u8c03\u8fdb\u884c\u5904\u7406<\/li>\n<li>\u4e3b\u52a8\u53d6\u6d88\u7684\u8bf7\u6c42&#xff08;\u6bd4\u5982\u7528\u6237\u624b\u52a8\u4e2d\u65ad&#xff09;\u2192 \u540c\u6837\u4f1a\u8fdb\u5165\u54cd\u5e94\u62e6\u622a\u5668\u7684\u5931\u8d25\u56de\u8c03&#xff0c;\u4e5f\u5c31\u662f onRejected \u5206\u652f&#xff0c;\u6700\u7ec8\u629b\u51fa\u4e00\u4e2a CancelError<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195704-6a739590d37fe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u901a\u8fc7CancelToken\u6216 AbortController \u4e3b\u52a8\u53d6\u6d88\u8bf7\u6c42\u65f6&#xff0c;\u4f1a\u8fdb\u5165 adapter \u7684rejected\u5206\u652f&#xff0c;\u968f\u540e\u8fdb\u5165\u54cd\u5e94\u62e6\u622a\u5668\u7684onRejected\u5904\u7406\u3002\u4f46\u5982\u679c\u662f\u5728\u8bf7\u6c42\u62e6\u622a\u5668\u9636\u6bb5\u88ab\u62d2\u7edd&#xff0c;\u5219\u4e0d\u4f1a\u8fdb\u5165\u54cd\u5e94\u62e6\u622a\u5668\u3002<\/li>\n<\/ul>\n<h3>\u5341\u3001\u54cd\u5e94\u62e6\u622a\u5668<\/h3>\n<p>\u8bf7\u6c42\u53d1\u9001\u5b8c\u6210\u4e4b\u540e&#xff0c;\u5c31\u4f1a\u8fdb\u5165\u54cd\u5e94\u62e6\u622a\u5668\u3002<\/p>\n<p>\u5728\u54cd\u5e94\u62e6\u622a\u5668\u91cc\u9762&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5bf9\u8fd4\u56de\u7684\u6570\u636e\u505a\u7edf\u4e00\u7684\u5904\u7406&#xff0c;\u6bd4\u5982&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5bf9\u54cd\u5e94\u6570\u636e\u8fdb\u884c\u683c\u5f0f\u5316<\/p>\n<\/li>\n<li>\n<p>\u7edf\u4e00\u5904\u7406\u9519\u8bef\u7801<\/p>\n<\/li>\n<li>\n<p>\u63d0\u53d6\u771f\u6b63\u9700\u8981\u7684\u6570\u636e\u90e8\u5206<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195705-6a73959139665.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6ce8\u610f&#xff1a; \u5982\u679c\u6dfb\u52a0\u4e86\u591a\u4e2a\u54cd\u5e94\u62e6\u622a\u5668&#xff0c;\u5b83\u4eec\u7684\u6267\u884c\u987a\u5e8f\u662f\u5148\u6dfb\u52a0\u7684\u5148\u6267\u884c\u3002\u5728request\u65b9\u6cd5\u6784\u5efachain\u6570\u7ec4\u65f6&#xff0c;\u4f1a\u4ece\u524d\u5f80\u540e\u904d\u5386\u54cd\u5e94\u62e6\u622a\u5668\u5217\u8868&#xff0c;\u5c06\u6bcf\u5bf9 [fulfilled, rejected] \u7528 push \u8ffd\u52a0\u5230chain\u7684\u5c3e\u90e8&#xff0c;\u6240\u4ee5\u5148\u6dfb\u52a0\u7684\u54cd\u5e94\u62e6\u622a\u5668\u4f1a\u5148\u6267\u884c\u3002(\u548c\u8bf7\u6c42\u62e6\u622a\u5668\u76f8\u53cd\u7684\u8fc7\u7a0b)<\/p>\n<\/li>\n<\/ul>\n<h3>\u5341\u4e00\u3001\u8bf7\u6c42\u94fe\u7684\u5b8c\u6574\u987a\u5e8f<\/h3>\n<p>\u8fd8\u8bb0\u5f97\u6211\u4eec\u5728 request \u65b9\u6cd5\u91cc\u9762\u8bf4\u7684\u90a3\u4e2a chain \u6570\u7ec4\u5417&#xff1f;\u5b83\u4e32\u8054\u4e86\u6240\u6709\u7684\u62e6\u622a\u5668\u548c\u8bf7\u6c42\u6d41\u7a0b\u3002<\/p>\n<p>\u6574\u4e2a\u8bf7\u6c42\u94fe\u7684\u6267\u884c\u987a\u5e8f\u662f\u8fd9\u6837\u7684&#xff1a;<\/p>\n<li>\u8bf7\u6c42\u62e6\u622a\u5668&#xff08;\u540e\u6dfb\u52a0\u7684\u5148\u6267\u884c&#xff09;<\/li>\n<li>dispatchRequest&#xff08;\u771f\u6b63\u53d1\u8bf7\u6c42&#xff09;<\/li>\n<li>\u54cd\u5e94\u62e6\u622a\u5668&#xff08;\u5148\u6dfb\u52a0\u7684\u5148\u6267\u884c&#xff09;<\/li>\n<p>\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u4ece\u7528\u6237\u53d1\u8d77\u8bf7\u6c42&#xff0c;\u5230\u6700\u540e\u62ff\u5230\u7ed3\u679c&#xff0c;\u6574\u4e2a\u6d41\u7a0b\u662f&#xff1a;<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195705-6a7395918687b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5341\u4e8c\u3001\u6700\u7ec8\u8fd4\u56de\u7ed9\u7528\u6237<\/h3>\n<p>\u7ecf\u8fc7\u54cd\u5e94\u62e6\u622a\u5668\u7684\u5904\u7406\u540e&#xff0c;\u6700\u7ec8\u4f1a\u5f97\u5230\u4e00\u4e2a response \u5bf9\u8c61&#xff0c;\u91cc\u9762\u5305\u542b\u4e86&#xff1a;<\/p>\n<ul>\n<li>data \u2014\u2014 \u5b9e\u9645\u7684\u6570\u636e<\/li>\n<li>status \u2014\u2014 \u72b6\u6001\u7801<\/li>\n<li>headers \u2014\u2014 \u54cd\u5e94\u5934<\/li>\n<li>config \u2014\u2014 \u8bf7\u6c42\u914d\u7f6e<\/li>\n<li>\u7b49\u7b49<br \/>\n\u5982\u679c\u51fa\u9519\u4e86&#xff0c;\u8fd4\u56de\u7684\u5c31\u662f error \u5bf9\u8c61\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195708-6a739594d8b8f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6700\u540e\u8fd9\u4e9b\u4e1c\u897f\u4f1a\u4f20\u9012\u7ed9\u6211\u4eec\u7528\u6237\u4ee3\u7801\u91cc\u7684 .then()\u3001.catch() \u6216\u8005 try&#8230;catch&#xff0c;\u6574\u4e2a\u8bf7\u6c42\u6d41\u7a0b\u5c31\u7ed3\u675f\u4e86\u3002<\/li>\n<\/ul>\n<h3>\u603b\u7ed3<\/h3>\n<p>Axios \u7684\u6574\u4e2a\u8bf7\u6c42\u6d41\u7a0b\u53ef\u4ee5\u6982\u62ec\u4e3a\u51e0\u4e2a\u6838\u5fc3\u8282\u70b9&#xff1a;<\/p>\n<li>\u53d1\u8d77\u8bf7\u6c42&#xff08;\u4e24\u79cd\u65b9\u5f0f&#xff1a;\u51fd\u6570\u8c03\u7528 \u6216 \u65b9\u6cd5\u8c03\u7528&#xff09;<\/li>\n<li>\u5de5\u5382\u65b9\u6cd5&#xff08;\u5408\u5e76\u914d\u7f6e&#xff09;<\/li>\n<li>request \u65b9\u6cd5&#xff08;\u6784\u5efa\u8bf7\u6c42\u94fe&#xff09;<\/li>\n<li>\u8bf7\u6c42\u62e6\u622a\u5668&#xff08;\u9884\u5904\u7406\u8bf7\u6c42&#xff0c;\u540e\u6dfb\u52a0\u7684\u5148\u6267\u884c&#xff09;<\/li>\n<li>transformRequest&#xff08;\u6570\u636e\u683c\u5f0f\u8f6c\u6362&#xff09;<\/li>\n<li>dispatchRequest &#043; adapter&#xff08;\u771f\u6b63\u53d1\u9001\u8bf7\u6c42&#xff09;<\/li>\n<li>transformResponse&#xff08;\u54cd\u5e94\u6570\u636e\u8f6c\u6362&#xff09;<\/li>\n<li>\u54cd\u5e94\u62e6\u622a\u5668&#xff08;\u7edf\u4e00\u5904\u7406\u54cd\u5e94&#xff0c;\u5148\u6dfb\u52a0\u7684\u5148\u6267\u884c&#xff09;<\/li>\n<li>\u8fd4\u56de\u7ed9\u7528\u6237<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8fd9\u7bc7\u5185\u5bb9&#xff0c;\u6211\u5c06\u62c6\u89e3 Axios \u7684\u6574\u4e2a\u6d41\u7a0b&#xff0c;\u4ece\u53d1\u9001\u8bf7\u6c42\u5230\u63a5\u6536\u54cd\u5e94\u6570\u636e\u3002\u6574\u4e2a\u8fc7\u7a0b\u62c6\u6210\u4e86\u4e00\u6761\u5b8c\u6574\u7684\u94fe\u8def&#xff0c;\u65b9\u4fbf\u5927\u5bb6\u7406\u89e3\u6bcf\u4e00\u6b65\u90fd\u5728\u5e72\u4ec0\u4e48\u3002\u4e00\u3001\u53d1\u8d77\u8bf7\u6c42\u7684\u4e24\u79cd\u65b9\u5f0f<br \/>\n\u6574\u4e2a\u8fc7\u7a0b\u7684\u7b2c\u4e00\u6b65&#xff0c;\u5c31\u662f\u7528\u6237\u901a\u8fc7 Axios \u53d1\u8d77\u4e00\u4e2a\u8bf7\u6c42\u3002\u8fd9\u91cc\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;<br \/>\n\u76f4\u63a5\u8c03\u7528 axios() \u51fd\u6570&#xff0c;\u4f20\u5165\u914d\u7f6e\u5bf9\u8c61\u8c03\u7528 axios.get()\u3001axios.post() \u8fd9\u7c7b\u65b9\u6cd5&#xff0c;\u6216\u8005\u7528 axios.create() \u521b<\/p>\n","protected":false},"author":2,"featured_media":90810,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[151,187],"topic":[],"class_list":["post-90827","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-http","tag-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/90827.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u8fd9\u7bc7\u5185\u5bb9&#xff0c;\u6211\u5c06\u62c6\u89e3 Axios \u7684\u6574\u4e2a\u6d41\u7a0b&#xff0c;\u4ece\u53d1\u9001\u8bf7\u6c42\u5230\u63a5\u6536\u54cd\u5e94\u6570\u636e\u3002\u6574\u4e2a\u8fc7\u7a0b\u62c6\u6210\u4e86\u4e00\u6761\u5b8c\u6574\u7684\u94fe\u8def&#xff0c;\u65b9\u4fbf\u5927\u5bb6\u7406\u89e3\u6bcf\u4e00\u6b65\u90fd\u5728\u5e72\u4ec0\u4e48\u3002\u4e00\u3001\u53d1\u8d77\u8bf7\u6c42\u7684\u4e24\u79cd\u65b9\u5f0f \u6574\u4e2a\u8fc7\u7a0b\u7684\u7b2c\u4e00\u6b65&#xff0c;\u5c31\u662f\u7528\u6237\u901a\u8fc7 Axios \u53d1\u8d77\u4e00\u4e2a\u8bf7\u6c42\u3002\u8fd9\u91cc\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a; \u76f4\u63a5\u8c03\u7528 axios() \u51fd\u6570&#xff0c;\u4f20\u5165\u914d\u7f6e\u5bf9\u8c61\u8c03\u7528 axios.get()\u3001axios.post() \u8fd9\u7c7b\u65b9\u6cd5&#xff0c;\u6216\u8005\u7528 axios.create() \u521b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/90827.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-05T19:57:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195700-6a73958c50a23.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90827.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/90827.html\",\"name\":\"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-05T19:57:10+00:00\",\"dateModified\":\"2026-08-05T19:57:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/90827.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/90827.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90827.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/90827.html","og_locale":"zh_CN","og_type":"article","og_title":"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u8fd9\u7bc7\u5185\u5bb9&#xff0c;\u6211\u5c06\u62c6\u89e3 Axios \u7684\u6574\u4e2a\u6d41\u7a0b&#xff0c;\u4ece\u53d1\u9001\u8bf7\u6c42\u5230\u63a5\u6536\u54cd\u5e94\u6570\u636e\u3002\u6574\u4e2a\u8fc7\u7a0b\u62c6\u6210\u4e86\u4e00\u6761\u5b8c\u6574\u7684\u94fe\u8def&#xff0c;\u65b9\u4fbf\u5927\u5bb6\u7406\u89e3\u6bcf\u4e00\u6b65\u90fd\u5728\u5e72\u4ec0\u4e48\u3002\u4e00\u3001\u53d1\u8d77\u8bf7\u6c42\u7684\u4e24\u79cd\u65b9\u5f0f \u6574\u4e2a\u8fc7\u7a0b\u7684\u7b2c\u4e00\u6b65&#xff0c;\u5c31\u662f\u7528\u6237\u901a\u8fc7 Axios \u53d1\u8d77\u4e00\u4e2a\u8bf7\u6c42\u3002\u8fd9\u91cc\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a; \u76f4\u63a5\u8c03\u7528 axios() \u51fd\u6570&#xff0c;\u4f20\u5165\u914d\u7f6e\u5bf9\u8c61\u8c03\u7528 axios.get()\u3001axios.post() \u8fd9\u7c7b\u65b9\u6cd5&#xff0c;\u6216\u8005\u7528 axios.create() \u521b","og_url":"https:\/\/www.wsisp.com\/helps\/90827.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-05T19:57:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805195700-6a73958c50a23.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/90827.html","url":"https:\/\/www.wsisp.com\/helps\/90827.html","name":"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-05T19:57:10+00:00","dateModified":"2026-08-05T19:57:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/90827.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/90827.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/90827.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Axios \u6e90\u7801\u89e3\u6790\uff1a\u4ece\u53d1\u8d77\u5230\u54cd\u5e94\uff0c\u5b8c\u6574\u8bf7\u6c42\u94fe\u8def\u5256\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=90827"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90827\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/90810"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=90827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=90827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=90827"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=90827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}