{"id":309,"date":"2021-11-09T19:39:39","date_gmt":"2021-11-09T11:39:39","guid":{"rendered":"http:\/\/47.98.165.52\/?p=309"},"modified":"2021-11-09T19:39:39","modified_gmt":"2021-11-09T11:39:39","slug":"django-2-url%e8%b7%af%e7%94%b1%e5%8f%8a%e6%a8%a1%e6%9d%bf%e6%b8%b2%e6%9f%93%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"\/?p=309","title":{"rendered":"Django-2.url\u8def\u7531\u53ca\u6a21\u677f\u6e32\u67d3\u65b9\u5f0f"},"content":{"rendered":"<h1>\u4e00\u3001url\u57fa\u672c\u6982\u5ff5\u53ca\u683c\u5f0f<\/h1>\n<h2>1.URL\u7684\u5f15\u5165<\/h2>\n<ul>\n<li>\u8bbf\u95ee\u8005\uff1a\u77e5\u9053\u4e86url\u5c31\u53ef\u4ee5\u8fdb\u53bb\u8bbf\u95ee<\/li>\n<li>\u670d\u52a1\u8005\uff1a\u8bbe\u7f6e\u597durl\uff0c\u522b\u4eba\u624d\u53ef\u4ee5\u8bbf\u95ee\u5230<br \/>\n<h2>2.\u8def\u7531URL\u5b9a\u4e49<\/h2>\n<\/li>\n<li>\n<p>URL\uff08Uniform Resource Locator\uff09\uff1a\u7edf\u4e00\u8d44\u6e90\u5b9a\u4f4d\u7b26\uff0c\u662f\u5bf9\u53ef\u4ee5\u4ece\u4e92\u8054\u7f51\u4e0a\u5f97\u5230\u7684\u7ec4\u5458\u7684\u4f4d\u7f6e\u548c\u8bbf\u95ee\u65b9\u6cd5\u7684\u4e00\u79cd\u7b80\u4ecb\u7684\u8868\u793a\uff0c\u662f\u4e92\u8054\u7f51\u6807\u51c6\u8d44\u6e90\u7684\u5730\u5740\u3002\u4e92\u8054\u7f51\u4e0a\u7684\u6bcf\u4e2a\u6587\u4ef6\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684URL\uff0c\u5b83\u5305\u542b\u7684\u4fe1\u606f\u6307\u51fa\u6587\u4ef6\u7684\u4f4d\u7f6e\u4ee5\u53ca\u6d4f\u89c8\u5668\u8be5\u600e\u4e48\u5904\u7406\u5b83\u3002<\/p>\n<h2>3.URL\u683c\u5f0f<\/h2>\n<pre><code>http:\/\/127.0.0.1:8000\/hello\/<\/code><\/pre>\n<p><strong>URL\u89e3\u91ca:<\/strong><\/p>\n<\/li>\n<li><strong>schema:\/\/host[:port#]\/path\/...\/[?query-string][#anchor]<\/strong>\n<ul>\n<li><strong>schema<\/strong>:\u6307\u5b9a\u4f7f\u7528\u7684\u534f\u8bae\uff08\u4f8b\u5982\uff1ahttp,https,ftp\uff09<\/li>\n<li><strong>host<\/strong>\uff1ahttp\u670d\u52a1\u5668\u7684IP\u5730\u5740\u6216\u57df\u540d<\/li>\n<li><strong>port<\/strong>\uff1a\u7aef\u53e3\u53f7\uff0chttp\u9ed8\u8ba4\u7aef\u53e3\u662f80<\/li>\n<li><strong>path<\/strong>\uff1a\u8bbf\u95ee\u8d44\u6e90\u7684\u8def\u5f84<\/li>\n<li><strong>query-string<\/strong>\uff1a\u53d1\u9001\u7ed9http\u670d\u52a1\u5668\u7684\u6570\u636e<\/li>\n<li><strong>anchor<\/strong>\uff1a\u951a\u70b9<br \/>\n<img src=\"https:\/\/img-blog.csdnimg.cn\/580925426f404f27b1fc26763b83d0af.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xlbW9uZ3Vlc3M=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>\u4e8c\u3001path\u548cre_path<\/h1>\n<h2>1.path\u57fa\u672c\u89c4\u5219<\/h2>\n<pre><code>path(&#039;test\/&lt;xx&gt;\/&#039;,views.test)<\/code><\/pre>\n<ul>\n<li>\u4f7f\u7528\u5c16\u62ec\u53f7&lt;&gt;\u4eceURL\u4e2d\u6355\u83b7\u503c<\/li>\n<li>\u5305\u542b\u4e00\u4e2a\u8f6c\u5316\u5668\u7c7b\u578b\uff08converter type\uff09<\/li>\n<li>\u6ca1\u6709\u8f6c\u6362\u5668\uff0c\u5c06\u5339\u914d\u4efb\u4f55\u5b57\u7b26\u4e32\uff0c\u5f53\u7136\u4e5f\u5305\u62ec\u4e86\/\u5b57\u7b26<\/li>\n<li>\n<p>\u5f53\u524d\u9762\u7684url\u5339\u914d\u6210\u529f\u540e\uff0c\u5c31\u4f1a\u8c03\u7528\u540e\u9762\u7684\u89c6\u56fe\u51fd\u6570<\/p>\n<h2>2.\u9ed8\u8ba4\u652f\u6301\u7684\u8f6c\u6362\u5668(\u524d\u4e09\u4e2a\u7528\u7684\u591a)<\/h2>\n<ul>\n<li><strong>str<\/strong>,\u5339\u914d\u9664\u4e86\u8def\u5f84\u5206\u9694\u7b26(\/)\u4e4b\u5916\u7684\u975e\u7a7a\u5b57\u7b26\u4e32\uff0c\u8fd9\u662f\u9ed8\u8ba4\u7684\u5f62\u5f0f<\/li>\n<li><strong>int<\/strong>\uff0c\u5339\u914d\u5b57\u6bcd\u3001\u6570\u5b57\u4ee5\u53ca\u6a2a\u6760\u3001\u4e0b\u5212\u7ebf\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li><strong>uuid<\/strong>\uff0c\u5339\u914d\u683c\u5f0f\u5316uuid\uff0c\u5982075194d3-6685-417e-a8a8-6c931e272f00<\/li>\n<li><strong>path<\/strong>,\u5339\u914d\u4efb\u4f55\u975e\u7a7a\u5b57\u7b26\u4e32\uff0c\u5305\u542b\u4e86\u8def\u5f84\u5206\u9694\u7b26<\/li>\n<\/ul>\n<blockquote>\n<p>\u9ed8\u8ba4\u662fstr\u5f62\u5f0f\uff0c\u5982\u6709\u9700\u8981\uff0c\u6309\u5982\u4e0b\u683c\u5f0f\u8fdb\u884c\u9009\u62e9\uff1a<br \/>\n<strong>path('hello\/<name>\/<int:age>\/',views.test1)<\/strong><\/p>\n<\/blockquote>\n<\/li>\n<\/ul>\n<p><font color=#999AAA >urls.py\uff1a<\/p>\n<pre><code class=\"language-python\">from django.contrib import admin\nfrom django.urls import path\nfrom . import views\n\nurlpatterns = [\n    path(&#039;admin\/&#039;, admin.site.urls),\n    path(&#039;index\/&#039;,views.index),\n    path(r&#039;hello\/&lt;name&gt;\/&#039;,views.test1),\n    path(r&#039;hello\/&lt;name&gt;\/&lt;int:age&gt;\/&#039;,views.test2),\n    #&lt;name&gt;\/&lt;int:age&gt;\u6216\u8005&lt;name&gt;,&lt;int:age&gt;\u5747\u53ef\u6b63\u5e38\u8bbf\u95ee\uff0c\u8def\u7531\u5730\u5740\u53d1\u751f\u76f8\u540c\u53d8\u5316\n]<\/code><\/pre>\n<p><font color=#999AAA >views.py\uff1a<\/p>\n<pre><code class=\"language-python\">from django.http import HttpResponse\n\ndef index(request):\n    return HttpResponse(&quot;Hello Django&quot;)\n\ndef test1(request,name):\n    return HttpResponse(f&quot;\u4f60\u597d\uff0c\u6211\u53eb{name}&quot;)\n\ndef test2(request,name,age):\n    return HttpResponse(f&quot;{name}\u4eca\u5e74{age}\u5c81\u3002&quot;)\n<\/code><\/pre>\n<p><img src=\"https:\/\/img-blog.csdnimg.cn\/3b355fcf3dc64a7587076919a7c923a6.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xlbW9uZ3Vlc3M=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>3.\u8f6c\u6362\u5668\u7684\u4f7f\u7528<\/h2>\n<ol>\n<li>\u8bbe\u7f6eurl:\n<pre><code>path(&#039;test\/&lt;int:xx&gt;&#039;,views.test3)<\/code><\/pre>\n<\/li>\n<li>\u5728\u89c6\u56fe\u4e2d\u5c06\u83b7\u53d6\u5230\u7684\u53c2\u6570\u548c\u53c2\u6570\u7684\u7c7b\u578b\u6253\u5370\u51fa\u6765\n<pre><code>def test3(request,xx):\nprint(xx,type(xx))\nreturn HtppResponse(&#039;hello %s&#039;%xx)<\/code><\/pre>\n<h2>4.re_path\u6b63\u5219\u5339\u914d<\/h2>\n<pre><code>\nre_path(&quot;^hello\/$&quot;,views.test5),<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>re_path(&quot;^hello\/(?P&lt;yy&gt;[0-9]+\/)&quot;,views.test6)<\/p>\n<pre><code><\/code><\/pre>\n<p>def test5(request):<br \/>\nreturn Httpreponse(&#039;\u8fd9\u91cc\u7528\u7684re_path\u8bbe\u7f6e\u7684&#039;)<\/p>\n<p>def test5(request,yy):<br \/>\nprint(yy,type(yy))<br \/>\nreturn Httpreponse(&quot;hello %s&quot;%yy)<\/p>\n<pre><code>\n<font color=#999AAA >\u4ee3\u7801\u5982\u4e0b\uff08ulrs.py\uff09\uff1a\n\n```python\nfrom django.contrib import admin\nfrom django.urls import path,re_path\nfrom . import views\n\nurlpatterns = [\n    path(&amp;#039;admin\/&amp;#039;, admin.site.urls),\n    path(&amp;#039;index\/&amp;#039;,views.index),\n   # path(r&amp;#039;hello\/&lt;name&gt;\/&amp;#039;,views.test1),\n   # path(r&amp;#039;hello\/&lt;name&gt;\/&lt;int:age&gt;\/&amp;#039;,views.test2),\n   re_path(&amp;#039;^hello\/(?P&lt;name&gt;[a-z]{4,8})\/(?P&lt;age&gt;[0-9]{1,3})\/&amp;#039;,views.test2)\n]&lt;\/code&gt;&lt;\/pre&gt;\n&lt;h2&gt;5.include\u7684\u4f5c\u7528&lt;\/h2&gt;\n&lt;ul&gt;\n&lt;li&gt;\u4e00\u4e2aproject\u6709\u4e00\u4e2a\u603b\u7684urls.py\uff0c\u5404\u4e2aApp\u4e5f\u53ef\u4ee5\u5efa\u7acb\u81ea\u5df1\u7684urls.py&lt;\/li&gt;\n&lt;li&gt;\n&lt;p&gt;\u7528include()\u51fd\u6570\u5728project\u7684urls.py\u6587\u4ef6\u8fdb\u884c\u6ce8\u518c&lt;\/p&gt;\n&lt;p&gt;&lt;strong&gt;include\u4f8b\u5b50\uff1a&lt;\/strong&gt;&lt;\/p&gt;\n&lt;pre&gt;&lt;code&gt;\u9879\u76ee\u76ee\u5f55\u4e0b\u7684\u4e3burls.py\nfrom django.contrib import admin\nfrom django.url import path,include\nfrom . import views\nurlpatterns = [\npath(&#039;admin\/&#039;,admin.site.urls),\npath(&#039;book\/&#039;,include(&#039;book.urls&#039;)),\n]&lt;\/code&gt;&lt;\/pre&gt;\n&lt;p&gt;&lt;font color=#ff0000  face=&#039;\u5fae\u8f6f\u96c5\u9ed1&#039; &gt;book&amp;music\/ulrs.py\uff1a&lt;\/p&gt;\n&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;\nfrom django.urls import path\nfrom . import views&lt;\/code&gt;&lt;\/pre&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;p&gt;urlpatterns=[\npath(&amp;#039;index\/&amp;#039;,views.index)&lt;\/p&gt;\n&lt;p&gt;]&lt;\/p&gt;\n&lt;pre&gt;&lt;code&gt;&lt;font color=#ff0000  face=&#039;\u5fae\u8f6f\u96c5\u9ed1&#039; &gt;book&amp;music\/views.py\uff1a\n```python\nfrom django.shortcuts import render\nfrom django.http import HttpResponse\n\n# Create your views here.\ndef index(request):\n    return HttpResponse(&#039;\u8fd9\u4e2a\u662fbook\/music\u7684\u4e3b\u9875&#039;)<\/code><\/pre>\n<h2>6.kwargs\u7684\u4f5c\u7528<\/h2>\n<ul>\n<li>\u4f20\u9012\u4e00\u4e2apython\u5b57\u5178\u4f5c\u4e3a\u989d\u5916\u7684\u53c2\u6570\u4f20\u9012\u7ed9\u89c6\u56fe\u51fd\u6570<\/li>\n<li>\u2014\u2014\u5728\u4e3b\u8def\u7531\u4e2d\uff0c\u7ed9\u6240\u6709\u5b50\u8def\u7531\u4f20\u9012\u53c2\u6570<\/li>\n<li>\u2014\u2014kwargs\u4e3a\u5b57\u5178\u7c7b\u578b\uff0c\u53ef\u4ee5\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u5230views\u4e2d\uff0c\u4f7f\u7528include\u7684\u65f6\u5019\uff0c\u9700\u8981\u7edf\u4e00\u7ed9\u4e0b\u9762\u7684url\u4e00\u4e9b\u53c2\u6570\u7684\u65f6\u5019\u663e\u5f97\u5c24\u4e3a\u6709\u7528\u3002<br \/>\n<img src=\"https:\/\/img-blog.csdnimg.cn\/54921d1537724b41813aa92d5dc52990.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xlbW9uZ3Vlc3M=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>-  <strong>\u89c6\u56fe\u51fd\u6570\u63a5\u6536\uff1a<\/strong><\/p>\n<pre><code class=\"language-python\">... ...\ndef index(request,**kwargs):\n    print(kwargs\u3002get(&#039;switch&#039;))\n    return HttpResponse(&#039;\u8fd9\u4e2a\u662fbook\u7684\u4e3b\u9875&#039;)<\/code><\/pre>\n<h2>7.name\u7684\u4f5c\u7528\u2014\u2014\u9875\u9762\u91cd\u5b9a\u5411<\/h2>\n<\/li>\n<li>\u7ed9\u4e00\u4e2a\u5339\u914d\u7684url\u5730\u5740\u53d6\u540d\u5b57<\/li>\n<li>\u4e00\u822c\u7528\u4e8e\u6a21\u677f\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528reverse\u8fdb\u884c\u91cd\u5b9a\u5411<br \/>\n<img src=\"https:\/\/img-blog.csdnimg.cn\/0134b094647e4b0998cff9ef3ac62b3d.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xlbW9uZ3Vlc3M=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li><font color=#ff0000  face='\u5fae\u8f6f\u96c5\u9ed1' >book\\urls.py\uff1a\n<pre><code class=\"language-pyhton\">\nfrom django.urls import path\nfrom . import views<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>urlpatterns=[<br \/>\npath(&#039;index\/&#039;,views.index),<br \/>\npath(&#039;article\/&#039;, views.article),<br \/>\npath(&#039;article_new\/&#039;, views.article_new, name=&#039;article_new&#039;),<br \/>\n]<\/p>\n<pre><code> - <font color=#ff0000  face='\u5fae\u8f6f\u96c5\u9ed1' >book\\views.py\uff1a\n```pyhton\nfrom django.shortcuts import render,redirect,reverse\nfrom django.http import HttpResponse\n\n# Create your views here.\ndef index(request):\n    return HttpResponse(&#039;\u8fd9\u4e2a\u662fbook\u7684\u4e3b\u9875&#039;)\n\ndef test1(request,name,age,**kwargs):\n    return HttpResponse(&#039;\u4f60\u597d\uff0c\u6211\u53eb{},\u4eca\u5e74{}\u5c81&#039;.format(name,age))\n\ndef article(request):\n    return redirect(reverse(&#039;article_new&#039;))\n\ndef article_new(request):\n    return HttpResponse(&#039;\u8fd9\u662f\u65b0\u7684\u7f51\u7ad9\u9996\u9875&#039;)\n<\/code><\/pre>\n<p><img src=\"https:\/\/img-blog.csdnimg.cn\/63e8212e02e8497987269c797b04748a.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xlbW9uZ3Vlc3M=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>&lt;hr style=&quot; border:solid; width:100px; height:1px;&quot; color=#000000 size=1&quot;&gt;<\/p>\n<h1>\u4e09\u3001\u6a21\u677f\u8def\u5f84\u914d\u7f6e<\/h1>\n<h2>1\u5728\u4e3b\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2atemplates\u76ee\u5f55\u7528\u6765\u5b58\u653e\u6240\u6709\u7684\u6a21\u677f\u6587\u4ef6\u3002<\/h2>\n<h2>2templates\u76ee\u5f55\u91cc\u9762\u518d\u65b0\u5efa\u5404\u4e2a\u4ee5App\u540d\u5b57\u547d\u540d\u7684\u76ee\u5f55\u6765\u5b58\u653e\u5404\u4e2aApp\u4e2d\u7684\u6a21\u677f\u6587\u4ef6\u3002<\/h2>\n<p><img src=\"https:\/\/img-blog.csdnimg.cn\/59579dbaad3a48f1b651a02dfda53aa7.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xlbW9uZ3Vlc3M=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>3settings.py\u4e2d\u6a21\u677f\u8def\u5f84\u914d\u7f6e<\/h2>\n<pre><code class=\"language-python\">TEMPLATES = [\n    {\n        &#039;BACKEND&#039;: &#039;django.template.backends.django.DjangoTemplates&#039;,\n        &#039;DIRS&#039;: [os.path.join(BASE_DIR,&#039;templates&#039;)],\n        &#039;APP_DIRS&#039;: True,\n        &#039;OPTIONS&#039;: {\n            &#039;context_processors&#039;: [\n                &#039;django.template.context_processors.debug&#039;,\n                &#039;django.template.context_processors.request&#039;,\n                &#039;django.contrib.auth.context_processors.auth&#039;,\n                &#039;django.contrib.messages.context_processors.messages&#039;,\n            ],\n        },\n    },\n]<\/code><\/pre>\n<h1>\u56db\u3001\u6a21\u677f\u6e32\u67d3\u65b9\u5f0f<\/h1>\n<h2>1. \u76f4\u63a5\u5c06html\u5b57\u7b26\u4e32\u7f16\u7801HTTPResponse\u4e2d<\/h2>\n<pre><code class=\"language-python\"> def index_1(request):\n    return HttpResponse('<h1>Hello Django!<\/h1>')<\/code><\/pre>\n<h2>2. django.template.loader\u5b9a\u4e49\u4e86\u51fd\u6570\u4ee5\u52a0\u8f7d\u6a21\u677f<\/h2>\n<p><strong>views.py<\/strong><\/p>\n<pre><code class=\"language-python\"> from django.template.loader import get_template\n def index_2(request,xx):\n    t = get_template('music\/index.html')\n    html = t.render({'music_name':xx})\n    return HttpResponse(html)\n##############################\n#\u5982\u679c\u6ca1\u6709\u53c2\u6570\uff1a\n def index_2(request):\n    t = get_template('music\/index.html')\n    html = t.render()\n    return HttpResponse(html)<\/code><\/pre>\n<p><strong>urls.py<\/strong><\/p>\n<pre><code class=\"language-python\">from django.urls import path\nfrom . import views\n\nurlpatterns=[\n        path('index\/',views.index),\n        path('article\/', views.article),\n        path('article_new\/', views.article_new, name='article_new'),\n        path('bilibili\/<xx>', views.bilibili),\n]\n##########################\n#\u5982\u679c\u6ca1\u6709\u53c2\u6570\uff1a\nurlpatterns=[\n        path('index\/',views.index),\n        path('article\/', views.article),\n        path('article_new\/', views.article_new, name='article_new'),\n        path('bilibili\/', views.bilibili),\n]\n<\/code><\/pre>\n<h2>3. \u4f7f\u7528render\u8fdb\u884c\u6e32\u67d3\u3002<\/h2>\n<pre><code class=\"language-python\">def index_3(request,xx):\n    return render(request,'music\/index.html',{'booksname':xx})<\/code><\/pre>\n<p><strong>render\u65b9\u6cd5\u662fdjango\u5c01\u88c5\u53f7\u7684\u7528\u6765\u6e32\u67d3\u6a21\u677f\u7684\u65b9\u6cd5\uff0c\u65b9\u4fbf\u597d\u7528\u3002<\/strong><\/p>\n<h1>\u603b\u7ed3<\/h1>\n<p><font color=#999AAA >\u63d0\u793a\uff1a\u8fd9\u91cc\u5bf9\u6587\u7ae0\u8fdb\u884c\u603b\u7ed3\uff1a<\/p>\n<p>1\u3001 URL\u6982\u5ff5<br \/>\n2\u3001 url.py<br \/>\n3\u3001 path\u89c4\u5219<br \/>\n4\u3001 include<br \/>\n5\u3001 name<br \/>\n6\u3001 \u6a21\u677f\u8def\u5f84<br \/>\n7\u3001 render<br \/>\n&lt;hr style=&quot; border:solid; width:100px; height:1px;&quot; color=#000000 size=1&quot;&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001url\u57fa\u672c\u6982\u5ff5\u53ca\u683c\u5f0f 1.URL\u7684\u5f15\u5165 \u8bbf\u95ee\u8005\uff1a\u77e5\u9053\u4e86url\u5c31\u53ef\u4ee5\u8fdb\u53bb\u8bbf\u95ee \u670d\u52a1\u8005\uff1a\u8bbe\u7f6e\u597durl\uff0c\u522b\u4eba\u624d\u53ef\u4ee5\u8bbf\u95ee\u5230 2.\u8def\u7531URL\u5b9a   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[26],"tags":[],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/309"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=309"}],"version-history":[{"count":1,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":310,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions\/310"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}