{"id":30525,"date":"2024-11-25T11:38:04","date_gmt":"2024-11-25T03:38:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30525\/"},"modified":"2024-11-25T11:38:04","modified_gmt":"2024-11-25T03:38:04","slug":"dedecms%e6%80%8e%e4%b9%88%e7%bb%99%e5%9b%be%e9%9b%86%e5%9b%be%e7%89%87%e5%8a%a0%e4%b8%8a%e8%87%aa%e5%8a%a8%e7%bc%96%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30525\/","title":{"rendered":"DEDECMS\u600e\u4e48\u7ed9\u56fe\u96c6\u56fe\u7247\u52a0\u4e0a\u81ea\u52a8\u7f16\u53f7"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5e002a4342847172.jpg\" class=\"aligncenter\" title=\"DEDECMS\u600e\u4e48\u7ed9\u56fe\u96c6\u56fe\u7247\u52a0\u4e0a\u81ea\u52a8\u7f16\u53f7\u63d2\u56fe\" alt=\"DEDECMS\u600e\u4e48\u7ed9\u56fe\u96c6\u56fe\u7247\u52a0\u4e0a\u81ea\u52a8\u7f16\u53f7\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>\u600e\u4e48\u7ed9\u56fe\u96c6\u56fe\u7247\u52a0\u4e0a\u81ea\u52a8\u7f16\u53f7\uff1f<\/strong><\/p>\n<p>\u5728\u56fe\u96c6\u5185\u5bb9\u9875\u8c03\u7528\u56fe\u96c6\u7684\u65f6\u5019\u96be\u514d\u4f1a\u7528\u5230ID\u7f16\u53f7\u4ec0\u4e48\u7684\uff0c\u672c\u6559\u7a0b\u5c06\u6559\u4f1a\u4f60\u5982\u4f55\u7ed9\u56fe\u96c6\u56fe\u7247\u81ea\u52a8\u7f16\u53f7\uff0c\u4ee3\u7801\u975e\u5e38\u7b80\u5355\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u4e86\u89e3\u4e0b\u54c8\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\u5728\u56fe\u96c6\u5185\u5bb9\u9875\u8c03\u7528\u56fe\u96c6\u7684\u65f6\u5019\uff0c\u5982\u679c\u4f7f\u7528\u67d0\u4e9b\u5e7b\u706f\u7247\u7279\u6548\u6216\u8005jquery\u63d2\u4ef6\uff0c\u96be\u514d\u4f1a\u7528\u5230ID\u7f16\u53f7\u4ec0\u4e48\u7684\uff0c\u672c\u6559\u7a0b\u5c06\u6559\u4f1a\u4f60\u5982\u4f55\u7ed9\u56fe\u96c6\u56fe\u7247\u81ea\u52a8\u7f16\u53f7\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u8ba9{dede:productimagelist}\u6807\u7b7e\u652f\u6301\u81ea\u52a8\u7f16\u53f7\uff0c\u975e\u5e38\u7b80\u5355\u3002&nbsp;<\/p>\n<p>\u6253\u5f00include\/taglib\/productimagelist.lib.php\u6587\u4ef6\uff0c\u627e\u5230\uff1a&nbsp;<\/p>\n<pre>$ctp-&amp;gt;LoadSource($innerText);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u5176\u540e\u9762\u53e6\u8d77\u4e00\u884c\u52a0\u5165&nbsp;<\/p>\n<pre>$GLOBALS['autoindex']&nbsp;=&nbsp;0;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u627e\u5230\uff1a&nbsp;<\/p>\n<pre>$revalue&nbsp;.=&nbsp;$ctp-&amp;gt;GetResult();<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u5176\u540e\u9762\u53e6\u8d77\u4e00\u884c\u52a0\u5165&nbsp;<\/p>\n<pre>$GLOBALS['autoindex']++;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u91cc\u7684\u6539\u52a8\u5c31\u7b97\u5b8c\u4e86\uff0c\u63a5\u4e0b\u6765\u662f\u5185\u5bb9\u9875\u91cc\u8c03\u7528\uff1a&nbsp;<\/p>\n<pre>[field:global&nbsp;name=autoindex\/]<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4f8b\u5b50\uff1a&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>{dede:productimagelist}&nbsp;\n&lt;span&gt;@@##@@&lt;\/span&gt;&nbsp;\n{\/dede:productimagelist}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5047\u5982\u67093\u4e2a\u56fe\u7247\uff0c\u5219\u7ed3\u679c\u4e3a\uff1a&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>&lt;span&gt;@@##@@&lt;\/span&gt;&nbsp;\n&lt;span&gt;@@##@@&lt;\/span&gt;&nbsp;\n&lt;span&gt;@@##@@&lt;\/span&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236<br \/>\n<img><br \/>\n<img><br \/>\n<img><br \/>\n<img> <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDEDECMS\u600e\u4e48\u7ed9\u56fe\u96c6\u56fe\u7247\u52a0\u4e0a\u81ea\u52a8\u7f16\u53f7\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>\u600e\u4e48\u7ed9\u56fe\u96c6\u56fe\u7247\u52a0\u4e0a\u81ea\u52a8\u7f16\u53f7\uff1f \u5728\u56fe\u96c6\u5185\u5bb9\u9875\u8c03\u7528\u56fe\u96c6\u7684\u65f6\u5019\u96be\u514d\u4f1a\u7528\u5230ID\u7f16\u53f7\u4ec0\u4e48\u7684\uff0c\u672c\u6559\u7a0b\u5c06\u6559\u4f1a\u4f60\u5982\u4f55\u7ed9\u56fe\u96c6\u56fe\u7247\u81ea\u52a8\u7f16\u53f7\uff0c\u4ee3\u7801\u975e\u5e38\u7b80\u5355\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u4e86\u89e3\u4e0b\u54c8\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9 \u63a8\u8350\u5b66\u4e60\uff1a \u5728\u56fe\u96c6\u5185\u5bb9\u9875\u8c03\u7528\u56fe\u96c6\u7684\u65f6\u5019\uff0c\u5982\u679c\u4f7f\u7528\u67d0\u4e9b\u5e7b\u706f\u7247\u7279\u6548\u6216\u8005jquery\u63d2\u4ef6\uff0c\u96be\u514d\u4f1a\u7528\u5230ID\u7f16\u53f7\u4ec0\u4e48\u7684\uff0c\u672c\u6559\u7a0b\u5c06\u6559\u4f1a\u4f60\u5982\u4f55\u7ed9\u56fe\u96c6\u56fe\u7247\u81ea\u52a8\u7f16\u53f7\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u8ba9{dede:productimagelist}\u6807\u7b7e\u652f\u6301\u81ea\u52a8\u7f16\u53f7\uff0c\u975e\u5e38\u7b80\u5355\u3002&nbsp; \u6253\u5f00include\/taglib\/productimagelist.lib.php\u6587\u4ef6\uff0c\u627e\u5230\uff1a&nbsp; $ctp-&amp;gt;LoadSource($innerText); \u767b\u5f55\u540e\u590d\u5236 \u5728\u5176\u540e\u9762\u53e6\u8d77\u4e00\u884c\u52a0\u5165&nbsp; $GLOBALS[&#8216;autoindex&#8217;]&nbsp;=&nbsp;0; \u767b\u5f55\u540e\u590d\u5236 \u627e\u5230\uff1a&nbsp; $revalue&nbsp;.=&nbsp;$ctp-&amp;gt;GetResult(); \u767b\u5f55\u540e\u590d\u5236 \u5728\u5176\u540e\u9762\u53e6\u8d77\u4e00\u884c\u52a0\u5165&nbsp; $GLOBALS[&#8216;autoindex&#8217;]++; \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u91cc\u7684\u6539\u52a8\u5c31\u7b97\u5b8c\u4e86\uff0c\u63a5\u4e0b\u6765\u662f\u5185\u5bb9\u9875\u91cc\u8c03\u7528\uff1a&nbsp; [field:global&nbsp;name=autoindex\/] \u767b\u5f55\u540e\u590d\u5236 \u4f8b\u5b50\uff1a&nbsp; \u4ee3\u7801\u5982\u4e0b: {dede:productimagelist}&nbsp; &lt;span&gt;@@##@@&lt;\/span&gt;&nbsp; {\/dede:productimagelist} \u767b\u5f55\u540e\u590d\u5236 \u5047\u5982\u67093\u4e2a\u56fe\u7247\uff0c\u5219\u7ed3\u679c\u4e3a\uff1a&nbsp; \u4ee3\u7801\u5982\u4e0b: &lt;span&gt;@@##@@&lt;\/span&gt;&nbsp; &lt;span&gt;@@##@@&lt;\/span&gt;&nbsp; &lt;span&gt;@@##@@&lt;\/span&gt; \u767b\u5f55\u540e\u590d\u5236 \u4ee5\u4e0a\u5c31\u662fDEDECMS\u600e\u4e48\u7ed9\u56fe\u96c6\u56fe\u7247\u52a0\u4e0a\u81ea\u52a8\u7f16\u53f7\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-30525","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30525","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=30525"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30525\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}