{"id":1423,"date":"2017-11-29T14:20:46","date_gmt":"2017-11-29T06:20:46","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1423"},"modified":"2017-11-29T14:20:46","modified_gmt":"2017-11-29T06:20:46","slug":"%e7%bb%87%e6%a2%a6dedecms%e6%89%8b%e6%9c%ba%e7%ab%99%e6%96%87%e7%ab%a0%e5%86%85%e5%ae%b9%e4%b8%ad%e5%9b%be%e7%89%87%e7%9a%84%e5%8f%98%e5%bd%a2%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1423.html","title":{"rendered":"\u7ec7\u68a6dedecms\u624b\u673a\u7ad9\u6587\u7ae0\u5185\u5bb9\u4e2d\u56fe\u7247\u7684\u53d8\u5f62\u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"
\u6211\u4eec\u7684\u624b\u673a\u7ad9\u5927\u591a\u6570\u90fd\u662f\u81ea\u9002\u5e94\u7684\uff0c\u56fe\u7247\u5982\u679c\u6709\u5bbd\u9ad8\u9650\u5236\u5c31\u53d8\u5f62\u4e86\u3002\u6dfb\u52a0\u6587\u7ae0\u56fe\u7247\u65f6\u5f88\u591a\u65f6\u5019\u90fd\u4f1a\u6709width height style\u8fd9\u4e9b\u5c5e\u6027\u5728\u91cc\u9762\uff0c\u5728\u624b\u673a\u7ad9\u4e0a\u8981\u628a\u5b83\u4eec\u6e05\u9664\uff0c\u53c8\u4e0d\u80fd\u5f71\u54cd\u7535\u8111\u7ad9\u7684\uff0c\u4e0d\u4fee\u6539\u7a0b\u5e8f\u5185\u6838\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u624b\u673a\u7248\u5185\u5bb9\u9875\u6a21\u677f\u91cc\uff0c\u628a\u8c03\u7528\u6587\u7ae0\u5185\u5bb9\u7684\u6807\u7b7e<\/p>\n
{dede:field.body\/}<\/code><\/pre>\n\u66ff\u6362\u6210<\/p>\n
{dede:field.body runphp=yes}\r\nglobal $cfg_basehost;\r\n$str = @me;\r\n$search = '\/(<img.*?)width=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\r\n$search1 = '\/(<img.*?)height=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\r\n$search2 = '#(<img.*?style=\".*?)width: \\d+px;([^\"]*?.*?>)#i';\r\n$search3 = '#(<img.*?style=\".*?)height: \\d+px;([^\"]*?.*?>)#i';\r\n$content = preg_replace($search,'$1$3',$str);\r\n$content = preg_replace($search1,'$1$3',$content);\r\n$content = preg_replace($search2,'$1$2',$content);\r\n$content = preg_replace($search3,'$1$2',$content);\r\n@me = str_replace('\/uploads\/allimg\/', $cfg_basehost.'\/uploads\/allimg\/', $content);\/\/\u624b\u673a\u7248\u56fe\u7247\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\r\n{\/dede:field.body} <\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u6211\u4eec\u7684\u624b\u673a\u7ad9\u5927\u591a\u6570\u90fd\u662f\u81ea\u9002\u5e94\u7684\uff0c\u56fe\u7247\u5982\u679c\u6709\u5bbd\u9ad8\u9650\u5236\u5c31\u53d8\u5f62\u4e86\u3002\u6dfb\u52a0\u6587\u7ae0\u56fe\u7247\u65f6\u5f88\u591a\u65f6\u5019\u90fd\u4f1a\u6709width heigh […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,445,443,444,180],"class_list":["post-1423","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-445","tag-443","tag-444","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1423","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=1423"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1423\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}