{"id":4511,"date":"2021-05-06T21:33:24","date_gmt":"2021-05-06T13:33:24","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=4511"},"modified":"2021-05-06T21:33:24","modified_gmt":"2021-05-06T13:33:24","slug":"%e7%bb%87%e6%a2%a6dedecms%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e5%bd%93%e5%89%8d%e5%ad%97%e6%ae%b5%e6%98%af%e5%90%a6%e6%9c%89%e5%80%bc%ef%bc%8c%e6%9c%89%e5%80%bc%e6%98%be%e7%a4%ba%ef%bc%8c%e6%97%a0","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/4511.html","title":{"rendered":"\u7ec7\u68a6DEDECMS\u5982\u4f55\u5224\u65ad\u5f53\u524d\u5b57\u6bb5\u662f\u5426\u6709\u503c\uff0c\u6709\u503c\u663e\u793a\uff0c\u65e0\u503c\u65f6\u9690\u85cf\u8be5\u5b57\u6bb5"},"content":{"rendered":"

\u7ec7\u68a6DEDECMS\u5982\u4f55\u5224\u65ad\u5f53\u524d\u5b57\u6bb5\u662f\u5426\u6709\u503c\uff0c\u6709\u503c\u663e\u793a\uff0c\u65e0\u503c\u65f6\u9690\u85cf\u8be5\u5b57\u6bb5\uff0c\u5b9e\u73b0\u65b9\u6cd5<\/p>\n

\u6253\u5f00\/include\/extend.func.php \u6587\u4ef6\u5728\u6700\u5e95\u90e8\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801<\/p>\n

\/**\r\n * \u5224\u65ad\u5f53\u524d\u5b57\u6bb5\u662f\u5426\u6709\u503c\uff0c\u6709\u663e\u793a\uff0c\u53cd\u4e4b\u4e0d\u663e\u793a\r\n * @param $var  \u5b57\u6bb5\u53d8\u91cf\r\n * @param $name  \u5b57\u6bb5\u540d\u79f0\r\n * @return string\r\n *\/\r\nfunction is_empty($var,$name){\r\n    if(!empty($var)){\r\n        $vars = $name.\":\".$var;\r\n}else{\r\n        $vars= '';\r\n    }\r\n    return $vars;\r\n}<\/code><\/pre>\n

\u6a21\u677f\u4e2d\u8c03\u7528\uff1a<\/p>\n

{dede:field.niandai function=\"is_empty(@me,'\u5e74\u4ee3')\"\/}<\/code><\/pre>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ec7\u68a6DEDECMS\u5982\u4f55\u5224\u65ad\u5f53\u524d\u5b57\u6bb5\u662f\u5426\u6709\u503c\uff0c\u6709\u503c\u663e\u793a\uff0c\u65e0\u503c\u65f6\u9690\u85cf\u8be5\u5b57\u6bb5\uff0c\u5b9e\u73b0\u65b9\u6cd5 \u6253\u5f00\/include\/ext […]<\/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,1456,1457,180,896],"class_list":["post-4511","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-1456","tag-1457","tag-180","tag-896"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4511","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=4511"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4511\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=4511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=4511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=4511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}