{"id":2653,"date":"2019-04-15T10:48:20","date_gmt":"2019-04-15T02:48:20","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2653"},"modified":"2019-04-15T11:35:39","modified_gmt":"2019-04-15T03:35:39","slug":"%e7%bb%87%e6%a2%a6dedecms-%e6%a0%87%e7%ad%be%e8%be%93%e5%87%ba%e4%b8%aa%e9%9a%8f%e6%9c%ba%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2653.html","title":{"rendered":"\u7ec7\u68a6DEDECMS \u6807\u7b7e\u8f93\u51fa\u4e2a\u968f\u673a\u6570\u5b57"},"content":{"rendered":"
\u7ec7\u68a6DEDECMS \u6807\u7b7e\u8f93\u51fa\u4e2a\u968f\u673a\u6570\u5b57<\/p>\n
{dede:field name=array runphp=yes}\r\n@me = rand(1,10);\r\n{\/dede:field}<\/code><\/pre>\nfield\u652f\u6301\u7528array\u83b7\u53d6\u4efb\u610f\u5b57\u6bb5\u7684\u503c\uff1b(\u652f\u6301\u6807\u8bb0\uff1a\u6587\u7ae0\u5185\u5bb9\u6a21\u677f\u7684 {dede:field name=\u2019array\u2019 \/}\u3001arclist\u3001arclistsg\u3001loop\u3001sql \u6807\u7b7e)<\/p>\n
\u6211\u4eec\u5e73\u65f6\u5e38\u7528\u7684\u5c31\u662f\u5355\u72ec\u7684\u4e00\u4e2a\u5b57\u6bb5\uff0c\u4f8b\u5982[field:title\/]\uff0c[field:arcurl\/]<\/p>\n
\u4f46\u5b9e\u9645\u4e0a\u6211\u4eec\u8fd8\u53ef\u4ee5\u8bf4\u628a\u67e5\u8be2\u7684\u6574\u4e2a\u6570\u7ec4\u63d0\u51fa\u6765\uff0c\u5bf9\u591a\u4e2a\u5b57\u6bb5\u8fdb\u884c\u5224\u65ad\u5904\u7406\u3002<\/p>\n
\u4f8b\u5982\u9700\u8981\u6709\u77ed\u6807\u9898\u5c31\u663e\u793a\u77ed\u6807\u9898\u3001\u6ca1\u6709\u77ed\u6807\u9898\u5c31\u663e\u793a\u957f\u6807\u9898\uff1a<\/p>\n
{dede:arclist row='10'}\r\n\t [field:array runphp='yes']\r\n\t if(@me['shorttitle']=='') {\r\n\t @me = @me['title'];\r\n\t } else {\r\n\t @me = @me['shorttitle'];\r\n\t }\r\n\t [\/field:array]\r\n{\/dede:arclist}<\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u7ec7\u68a6DEDECMS \u6807\u7b7e\u8f93\u51fa\u4e2a\u968f\u673a\u6570\u5b57 {dede:field name=array runphp=yes} […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,459,180,878],"class_list":["post-2653","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-459","tag-180","tag-878"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=2653"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2653\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}