{"id":1165689,"date":"2025-01-15T15:23:30","date_gmt":"2025-01-15T07:23:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1165689.html"},"modified":"2025-01-15T15:23:33","modified_gmt":"2025-01-15T07:23:33","slug":"python%e5%a6%82%e4%bd%95%e5%a4%84%e7%90%86ajax%e8%af%b7%e6%b1%82","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1165689.html","title":{"rendered":"python\u5982\u4f55\u5904\u7406ajax\u8bf7\u6c42"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25210008\/18ef5369-a68b-4b43-b663-67ba3a2700ff.webp\" alt=\"python\u5982\u4f55\u5904\u7406ajax\u8bf7\u6c42\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u5904\u7406Ajax\u8bf7\u6c42\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4e3b\u8981\u5305\u62ec<strong>\u4f7f\u7528Flask\u3001Django\u7b49\u6846\u67b6<\/strong>\u3002\u5176\u4e2d\uff0cFlask \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Web\u6846\u67b6\uff0c\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u5c0f\u578b\u9879\u76ee\uff0cDjango \u5219\u662f\u4e00\u4e2a\u5168\u529f\u80fd\u7684Web\u6846\u67b6\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee\u3002<strong>Flask \u4f7f\u7528\u65b9\u4fbf\u3001\u4ee3\u7801\u7b80\u6d01\uff0cDjango \u529f\u80fd\u5168\u9762\u3001\u5b89\u5168\u6027\u9ad8<\/strong>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u8fd9\u4e24\u4e2a\u6846\u67b6\u4e2d\u5904\u7406Ajax\u8bf7\u6c42\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001FLASK<\/h3>\n<\/p>\n<p><h4>1\u3001\u8bbe\u7f6eFlask\u9879\u76ee<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Flask\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install Flask<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Flask\u5e94\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flask import Flask, request, jsonify<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/&#39;)<\/p>\n<p>def index():<\/p>\n<p>    return &quot;Hello, World!&quot;<\/p>\n<p>if __name__ == &#39;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&#39;:<\/p>\n<p>    app.run(debug=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5904\u7406Ajax\u8bf7\u6c42<\/h4>\n<\/p>\n<p><p>\u5728Flask\u4e2d\u5904\u7406Ajax\u8bf7\u6c42\u4e3b\u8981\u901a\u8fc7Flask\u7684<code>request<\/code>\u5bf9\u8c61\u6765\u83b7\u53d6\u8bf7\u6c42\u6570\u636e\uff0c\u5e76\u901a\u8fc7<code>jsonify<\/code>\u8fd4\u56deJSON\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u524d\u7aef\u53d1\u9001Ajax\u8bf7\u6c42\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>    &lt;title&gt;Ajax with Flask&lt;\/title&gt;<\/p>\n<p>    &lt;script src=&quot;https:\/\/code.jquery.com\/jquery-3.6.0.min.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>    &lt;button id=&quot;sendRequest&quot;&gt;Send Ajax Request&lt;\/button&gt;<\/p>\n<p>    &lt;script type=&quot;text\/javascript&quot;&gt;<\/p>\n<p>        $(document).ready(function(){<\/p>\n<p>            $(&quot;#sendRequest&quot;).click(function(){<\/p>\n<p>                $.ajax({<\/p>\n<p>                    url: &quot;\/ajax&quot;,<\/p>\n<p>                    type: &quot;POST&quot;,<\/p>\n<p>                    data: JSON.stringify({ &quot;message&quot;: &quot;Hello, Flask!&quot; }),<\/p>\n<p>                    contentType: &quot;application\/json&quot;,<\/p>\n<p>                    success: function(response){<\/p>\n<p>                        alert(response.reply);<\/p>\n<p>                    }<\/p>\n<p>                });<\/p>\n<p>            });<\/p>\n<p>        });<\/p>\n<p>    &lt;\/script&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728Flask\u4e2d\u5904\u7406\u8be5\u8bf7\u6c42\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">@app.route(&#39;\/ajax&#39;, methods=[&#39;POST&#39;])<\/p>\n<p>def ajax_request():<\/p>\n<p>    data = request.get_json()<\/p>\n<p>    message = data.get(&#39;message&#39;)<\/p>\n<p>    response = {<\/p>\n<p>        &#39;reply&#39;: f&#39;Server received: {message}&#39;<\/p>\n<p>    }<\/p>\n<p>    return jsonify(response)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u89e3\u91ca\u4ee3\u7801<\/h4>\n<\/p>\n<ul>\n<li><code>@app.route(&#39;\/ajax&#39;, methods=[&#39;POST&#39;])<\/code>\uff1a\u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684\u8def\u7531\uff0c\u5904\u7406\u6765\u81ea\u524d\u7aef\u7684Ajax POST\u8bf7\u6c42\u3002<\/li>\n<li><code>request.get_json()<\/code>\uff1a\u83b7\u53d6\u8bf7\u6c42\u7684JSON\u6570\u636e\u3002<\/li>\n<li><code>jsonify(response)<\/code>\uff1a\u8fd4\u56deJSON\u683c\u5f0f\u7684\u54cd\u5e94\u6570\u636e\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001DJANGO<\/h3>\n<\/p>\n<p><h4>1\u3001\u8bbe\u7f6eDjango\u9879\u76ee<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Django\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install Django<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Django\u9879\u76ee\u548c\u5e94\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">django-admin startproject myproject<\/p>\n<p>cd myproject<\/p>\n<p>django-admin startapp myapp<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u914d\u7f6eDjango\u9879\u76ee<\/h4>\n<\/p>\n<p><p>\u5728<code>settings.py<\/code>\u4e2d\u6dfb\u52a0\u5e94\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">INSTALLED_APPS = [<\/p>\n<p>    ...<\/p>\n<p>    &#39;myapp&#39;,<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728<code>urls.py<\/code>\u4e2d\u914d\u7f6e\u8def\u7531\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from django.urls import path<\/p>\n<p>from myapp import views<\/p>\n<p>urlpatterns = [<\/p>\n<p>    path(&#39;ajax\/&#39;, views.ajax_request, name=&#39;ajax_request&#39;),<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u5904\u7406Ajax\u8bf7\u6c42<\/h4>\n<\/p>\n<p><p>\u5728Django\u4e2d\u5904\u7406Ajax\u8bf7\u6c42\u4e3b\u8981\u901a\u8fc7Django\u7684<code>HttpRequest<\/code>\u5bf9\u8c61\u6765\u83b7\u53d6\u8bf7\u6c42\u6570\u636e\uff0c\u5e76\u901a\u8fc7<code>JsonResponse<\/code>\u8fd4\u56deJSON\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u524d\u7aef\u53d1\u9001Ajax\u8bf7\u6c42\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>    &lt;title&gt;Ajax with Django&lt;\/title&gt;<\/p>\n<p>    &lt;script src=&quot;https:\/\/code.jquery.com\/jquery-3.6.0.min.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>    &lt;button id=&quot;sendRequest&quot;&gt;Send Ajax Request&lt;\/button&gt;<\/p>\n<p>    &lt;script type=&quot;text\/javascript&quot;&gt;<\/p>\n<p>        $(document).ready(function(){<\/p>\n<p>            $(&quot;#sendRequest&quot;).click(function(){<\/p>\n<p>                $.ajax({<\/p>\n<p>                    url: &quot;\/ajax\/&quot;,<\/p>\n<p>                    type: &quot;POST&quot;,<\/p>\n<p>                    data: JSON.stringify({ &quot;message&quot;: &quot;Hello, Django!&quot; }),<\/p>\n<p>                    contentType: &quot;application\/json&quot;,<\/p>\n<p>                    success: function(response){<\/p>\n<p>                        alert(response.reply);<\/p>\n<p>                    }<\/p>\n<p>                });<\/p>\n<p>            });<\/p>\n<p>        });<\/p>\n<p>    &lt;\/script&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728Django\u4e2d\u5904\u7406\u8be5\u8bf7\u6c42\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from django.http import JsonResponse<\/p>\n<p>from django.views.decorators.csrf import csrf_exempt<\/p>\n<p>import json<\/p>\n<p>@csrf_exempt<\/p>\n<p>def ajax_request(request):<\/p>\n<p>    if request.method == &#39;POST&#39;:<\/p>\n<p>        data = json.loads(request.body)<\/p>\n<p>        message = data.get(&#39;message&#39;)<\/p>\n<p>        response = {<\/p>\n<p>            &#39;reply&#39;: f&#39;Server received: {message}&#39;<\/p>\n<p>        }<\/p>\n<p>        return JsonResponse(response)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u89e3\u91ca\u4ee3\u7801<\/h4>\n<\/p>\n<ul>\n<li><code>@csrf_exempt<\/code>\uff1a\u7981\u7528CSRF\u4fdd\u62a4\uff0c\u4ee5\u4fbf\u80fd\u591f\u5904\u7406\u672a\u7ecf\u8ba4\u8bc1\u7684Ajax\u8bf7\u6c42\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u8bf7\u786e\u4fdd\u5b89\u5168\u5904\u7406CSRF\u4fdd\u62a4\u3002<\/li>\n<li><code>json.loads(request.body)<\/code>\uff1a\u89e3\u6790\u8bf7\u6c42\u7684JSON\u6570\u636e\u3002<\/li>\n<li><code>JsonResponse(response)<\/code>\uff1a\u8fd4\u56deJSON\u683c\u5f0f\u7684\u54cd\u5e94\u6570\u636e\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001FLASK\u4e0eDJANGO\u7684\u6bd4\u8f83<\/h3>\n<\/p>\n<p><h4>1\u3001\u4ee3\u7801\u7b80\u6d01\u6027<\/h4>\n<\/p>\n<p><p>Flask\u7684\u4ee3\u7801\u66f4\u4e3a\u7b80\u6d01\uff0c\u9002\u5408\u5c0f\u578b\u9879\u76ee\u548c\u5feb\u901f\u5f00\u53d1\u3002Django\u5219\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\u548c\u5b89\u5168\u6027\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u529f\u80fd\u6027<\/h4>\n<\/p>\n<p><p>Django\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u5185\u7f6e\u529f\u80fd\uff0c\u5982\u8ba4\u8bc1\u3001\u7ba1\u7406\u754c\u9762\u7b49\uff0c\u51cf\u5c11\u4e86\u5f00\u53d1\u65f6\u95f4\u3002Flask\u5219\u9700\u8981\u901a\u8fc7\u7b2c\u4e09\u65b9\u6269\u5c55\u6765\u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u6027\u80fd<\/h4>\n<\/p>\n<p><p>Flask\u7684\u6027\u80fd\u66f4\u9ad8\uff0c\u56e0\u4e3a\u5b83\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u6846\u67b6\u3002Django\u7531\u4e8e\u5176\u529f\u80fd\u4e30\u5bcc\uff0c\u6027\u80fd\u7a0d\u4f4e\uff0c\u4f46\u5bf9\u4e8e\u5927\u591a\u6570\u9879\u76ee\u6765\u8bf4\uff0c\u6027\u80fd\u5dee\u5f02\u5e76\u4e0d\u660e\u663e\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>\u5728Python\u4e2d\u5904\u7406Ajax\u8bf7\u6c42\u53ef\u4ee5\u901a\u8fc7Flask\u548cDjango\u6846\u67b6\u5b9e\u73b0<\/strong>\uff0c\u5176\u4e2d<strong>Flask\u66f4\u7b80\u6d01\uff0c\u9002\u5408\u5c0f\u578b\u9879\u76ee\uff0cDjango\u529f\u80fd\u5168\u9762\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee<\/strong>\u3002\u5728\u4f7f\u7528Flask\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>request.get_json()<\/code>\u83b7\u53d6\u8bf7\u6c42\u6570\u636e\uff0c\u5e76\u901a\u8fc7<code>jsonify<\/code>\u8fd4\u56deJSON\u54cd\u5e94\u3002\u5728\u4f7f\u7528Django\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>json.loads(request.body)<\/code>\u89e3\u6790\u8bf7\u6c42\u6570\u636e\uff0c\u5e76\u901a\u8fc7<code>JsonResponse<\/code>\u8fd4\u56deJSON\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728Python\u4e2d\u8f7b\u677e\u5904\u7406Ajax\u8bf7\u6c42\uff0c\u5e76\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u3002\u65e0\u8bba\u9009\u62e9Flask\u8fd8\u662fDjango\uff0c\u90fd\u80fd\u6709\u6548\u5730\u63d0\u5347\u5f00\u53d1\u6548\u7387\u548c\u9879\u76ee\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406Ajax\u8bf7\u6c42\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5904\u7406Ajax\u8bf7\u6c42\u901a\u5e38\u6d89\u53ca\u4f7f\u7528\u6846\u67b6\u5982Flask\u6216Django\u3002\u4f60\u9700\u8981\u8bbe\u7f6e\u4e00\u4e2a\u8def\u7531\u6765\u63a5\u6536Ajax\u8bf7\u6c42\uff0c\u5e76\u5728\u89c6\u56fe\u51fd\u6570\u4e2d\u8fd4\u56de\u6240\u9700\u7684\u54cd\u5e94\u3002Ajax\u8bf7\u6c42\u901a\u5e38\u662f\u901a\u8fc7JavaScript\u7684<code>XMLHttpRequest<\/code>\u6216<code>fetch<\/code> API\u53d1\u8d77\u7684\uff0c\u670d\u52a1\u5668\u7aef\u9700\u8981\u89e3\u6790\u8bf7\u6c42\u6570\u636e\u5e76\u8fd4\u56deJSON\u683c\u5f0f\u7684\u54cd\u5e94\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u4fdd\u6211\u7684Ajax\u8bf7\u6c42\u4e0ePython\u540e\u7aef\u7684\u517c\u5bb9\u6027\uff1f<\/strong><br \/>\u786e\u4fdd\u4f60\u7684Ajax\u8bf7\u6c42\u7684Content-Type\u8bbe\u7f6e\u4e3a<code>application\/json<\/code>\uff0c\u5e76\u5728Python\u540e\u7aef\u4f7f\u7528\u76f8\u5e94\u7684\u5e93\uff08\u5982<code>json<\/code>\u6a21\u5757\uff09\u6765\u89e3\u6790\u8bf7\u6c42\u6570\u636e\u3002\u540c\u65f6\uff0c\u786e\u4fdd\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f\u6b63\u786e\uff0c\u4f8b\u5982\u4f7f\u7528<code>jsonify<\/code>\uff08\u5728Flask\u4e2d\uff09\u6765\u8fd4\u56deJSON\u54cd\u5e94\u3002<\/p>\n<p><strong>\u600e\u6837\u8c03\u8bd5Python\u5904\u7406\u7684Ajax\u8bf7\u6c42\uff1f<\/strong><br \/>\u8c03\u8bd5\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\u67e5\u770b\u7f51\u7edc\u8bf7\u6c42\u548c\u54cd\u5e94\u3002\u68c0\u67e5\u8bf7\u6c42\u7684URL\u3001\u8bf7\u6c42\u65b9\u6cd5\u3001\u8bf7\u6c42\u6570\u636e\u548c\u54cd\u5e94\u72b6\u6001\u7801\u3002\u4f7f\u7528Python\u7684\u65e5\u5fd7\u529f\u80fd\u8bb0\u5f55\u670d\u52a1\u5668\u7aef\u7684\u8bf7\u6c42\u5904\u7406\u6d41\u7a0b\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3\u53d1\u751f\u4e86\u4ec0\u4e48\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8fc5\u901f\u5b9a\u4f4d\u95ee\u9898\u5e76\u8fdb\u884c\u4fee\u590d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5904\u7406Ajax\u8bf7\u6c42\u53ef\u4ee5\u901a\u8fc7\u591a\u4e2a\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528Flask\u3001Django\u7b49\u6846\u67b6\u3002\u5176\u4e2d\uff0cFla [&hellip;]","protected":false},"author":3,"featured_media":1165695,"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\/1165689"}],"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=1165689"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1165689\/revisions"}],"predecessor-version":[{"id":1165696,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1165689\/revisions\/1165696"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1165695"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1165689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1165689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1165689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}