{"id":30904,"date":"2024-11-25T11:29:00","date_gmt":"2024-11-25T03:29:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30904\/"},"modified":"2024-11-25T11:29:00","modified_gmt":"2024-11-25T03:29:00","slug":"%e7%bb%87%e6%a2%a6%e6%80%8e%e4%b9%88%e8%b0%83%e7%94%a8%e9%a1%b6%e7%ba%a7%e6%a0%8f%e7%9b%ae%e4%bb%a5%e5%8f%8a%e4%b8%8b%e9%9d%a2%e7%9a%84%e4%ba%8c%e7%ba%a7%e6%a0%8f%e7%9b%ae","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30904\/","title":{"rendered":"\u7ec7\u68a6\u600e\u4e48\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5e13ddefe197b266.jpg\" class=\"aligncenter\" title=\"\u7ec7\u68a6\u600e\u4e48\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee\u63d2\u56fe\" alt=\"\u7ec7\u68a6\u600e\u4e48\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>\u7ec7\u68a6\u600e\u4e48\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee?<\/strong><\/p>\n<p>\u7ec7\u68a6\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\u6709\u4e9b\u65f6\u5019\u9700\u8981\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee\uff0c\u4f8b\u5982\u518d\u505a\u4e0b\u62c9\u83dc\u5355\u65f6\u3002\u6700\u7b80\u5355\u7684\u8c03\u7528\u4e8c\u7ea7\u680f\u76ee\u7684\u529e\u6cd5\uff1a<\/p>\n<pre>{dede:channelartlist&nbsp;typeid='top'}\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<li>\n<ul>\n   {dede:channel&nbsp;type=&#8217;son&#8217;&nbsp;noself=&#8217;yes&#8217;} <\/p>\n<li><\/li>\n<p> {\/dede:channel}\n <\/ul>\n<\/li>\n<p> {\/dede:channelartlist} <\/p>\n<p>\u6709\u4e9b\u65f6\u5019\u9700\u8981\u505a\u6837\u5f0f\u65f6\uff0c\u9700\u8981\u4e3adede:channelartlist \u91cc\u7684\u67d0\u4e2a\u6807\u7b7e\u52a0\u4e0a\u4e0d\u540c\u7684css\uff0c\u4f8b\u5982\u4e0b\u9762\u7684\u4f8b\u5b50\uff1a<\/p>\n<pre>{dede:channelartlist&nbsp;typeid='top'}\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<li>\n<ul>\n   {dede:channel&nbsp;type=&#8217;son&#8217;&nbsp;noself=&#8217;yes&#8217;} <\/p>\n<li><\/li>\n<p> {\/dede:channel}\n <\/ul>\n<\/li>\n<p> {\/dede:channelartlist} <\/p>\n<p>{dede:global name=&#8217;itemindex&#8217;\/}\u4e3a\u5728\u6bcf\u6b21\u8c03\u7528\u9876\u7ea7\u680f\u76ee\uff0c\u81ea\u52a8\u9012\u589e\u3002<\/p>\n<p>\u66f4\u590d\u6742\u7684\u8c03\u7528\u4e8c\u7ea7\u680f\u76ee\u7684\u65b9\u5f0f\uff0c\u8981\u7528dede:php\u6807\u7b7e\uff0c\u5982\u4e0b\u4f8b\uff1a<\/p>\n<pre><\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li><\/li>\n<p> {dede:channelartlist&nbsp;typeid=&#8217;top&#8217;} {dede:php} $thisid&nbsp;=&nbsp;$refObj-&gt;Fields[&#8216;id&#8217;]; $dsql-&gt;SetQuery(&#8220;Select&nbsp;*&nbsp;from&nbsp;`dede_arctype`&nbsp;where&nbsp;reid=&#8221;.$thisid.&#8221;&nbsp;ORDER&nbsp;BY&nbsp;sortrank&#8221;); $dsql-&gt;Execute(); $i=0; while($arr&nbsp;=&nbsp;$dsql-&gt;getArray()){ $i&nbsp;=&nbsp;$i&nbsp;+1; $str&nbsp;=&nbsp;implode(&#8216;,&#8217;,$arr); if(!empty($str)&nbsp;&amp;&amp;&nbsp;$i==1){ &nbsp;echo&nbsp;&#8216; <\/p>\n<li>\n<dl>\n<dt>\n    <img>\n   <\/dt>\n<p>&#8216;;&nbsp; } echo&nbsp;&#8216; <\/p>\n<dd>\n   <\/dd>\n<p>&#8216;; } if(!empty($str))&nbsp;echo&nbsp;&#8216;\n  <\/dl>\n<p> &#8216;; if(empty($str)){ &nbsp;echo&nbsp;&#8216;<\/li>\n<li>&#8216;; } {\/dede:php}  &nbsp;<\/li>\n<p> {\/dede:channelartlist}\n<\/ul>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u867d\u7136\u66f4\u590d\u6742\uff0c\u4f46\u4e5f\u66f4\u7075\u6d3b\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u600e\u4e48\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ec7\u68a6\u600e\u4e48\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee? \u7ec7\u68a6\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee \u63a8\u8350\u5b66\u4e60\uff1a \u6709\u4e9b\u65f6\u5019\u9700\u8981\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee\uff0c\u4f8b\u5982\u518d\u505a\u4e0b\u62c9\u83dc\u5355\u65f6\u3002\u6700\u7b80\u5355\u7684\u8c03\u7528\u4e8c\u7ea7\u680f\u76ee\u7684\u529e\u6cd5\uff1a {dede:channelartlist&nbsp;typeid=&#8217;top&#8217;} \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 {dede:channel&nbsp;type=&#8217;son&#8217;&nbsp;noself=&#8217;yes&#8217;} {\/dede:channel} {\/dede:channelartlist} \u6709\u4e9b\u65f6\u5019\u9700\u8981\u505a\u6837\u5f0f\u65f6\uff0c\u9700\u8981\u4e3adede:channelartlist \u91cc\u7684\u67d0\u4e2a\u6807\u7b7e\u52a0\u4e0a\u4e0d\u540c\u7684css\uff0c\u4f8b\u5982\u4e0b\u9762\u7684\u4f8b\u5b50\uff1a {dede:channelartlist&nbsp;typeid=&#8217;top&#8217;} \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 {dede:channel&nbsp;type=&#8217;son&#8217;&nbsp;noself=&#8217;yes&#8217;} {\/dede:channel} {\/dede:channelartlist} {dede:global name=&#8217;itemindex&#8217;\/}\u4e3a\u5728\u6bcf\u6b21\u8c03\u7528\u9876\u7ea7\u680f\u76ee\uff0c\u81ea\u52a8\u9012\u589e\u3002 \u66f4\u590d\u6742\u7684\u8c03\u7528\u4e8c\u7ea7\u680f\u76ee\u7684\u65b9\u5f0f\uff0c\u8981\u7528dede:php\u6807\u7b7e\uff0c\u5982\u4e0b\u4f8b\uff1a \u767b\u5f55\u540e\u590d\u5236 {dede:channelartlist&nbsp;typeid=&#8217;top&#8217;} {dede:php} $thisid&nbsp;=&nbsp;$refObj-&gt;Fields[&#8216;id&#8217;]; $dsql-&gt;SetQuery(&#8220;Select&nbsp;*&nbsp;from&nbsp;`dede_arctype`&nbsp;where&nbsp;reid=&#8221;.$thisid.&#8221;&nbsp;ORDER&nbsp;BY&nbsp;sortrank&#8221;); $dsql-&gt;Execute(); $i=0; while($arr&nbsp;=&nbsp;$dsql-&gt;getArray()){ $i&nbsp;=&nbsp;$i&nbsp;+1; $str&nbsp;=&nbsp;implode(&#8216;,&#8217;,$arr); if(!empty($str)&nbsp;&amp;&amp;&nbsp;$i==1){ &nbsp;echo&nbsp;&#8216; &#8216;;&nbsp; } echo&nbsp;&#8216; &#8216;; } if(!empty($str))&nbsp;echo&nbsp;&#8216; &#8216;; if(empty($str)){ &nbsp;echo&nbsp;&#8216; &#8216;; } {\/dede:php} &nbsp; {\/dede:channelartlist} \u8fd9\u79cd\u65b9\u5f0f\u867d\u7136\u66f4\u590d\u6742\uff0c\u4f46\u4e5f\u66f4\u7075\u6d3b\u3002 \u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u600e\u4e48\u8c03\u7528\u9876\u7ea7\u680f\u76ee\u4ee5\u53ca\u4e0b\u9762\u7684\u4e8c\u7ea7\u680f\u76ee\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-30904","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=30904"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30904\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}