 {"id":484,"date":"2012-11-03T08:50:31","date_gmt":"2012-11-03T00:50:31","guid":{"rendered":"http:\/\/www.qyuef.com\/?p=484"},"modified":"2012-11-03T08:50:31","modified_gmt":"2012-11-03T00:50:31","slug":"%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e7%bb%87%e6%a2%a6%e6%96%87%e7%ab%a0%e5%88%97%e8%a1%a8%e9%a1%b5%e6%8c%89%e7%85%a7%e6%9d%83%e9%87%8d%e8%87%aa%e5%ae%9a%e4%b9%89%e6%8e%92%e5%ba%8f","status":"publish","type":"post","link":"http:\/\/www.qyuef.com\/?p=484","title":{"rendered":"\u5982\u4f55\u5b9e\u73b0\u7ec7\u68a6\u6587\u7ae0\u5217\u8868\u9875\u6309\u7167\u6743\u91cd\u81ea\u5b9a\u4e49\u6392\u5e8f"},"content":{"rendered":"<p>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">dedecms v5.6\\v5.7\u5217\u8868\u9875\u6807\u7b7e{dede:list\u589e\u52a0\u6309\u6743\u91cd\u6392\u5e8f\u6807\u7b7e&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">dedecms v5.6\u7248\u672c\u5df2\u7ecf\u4e2d\u5df2\u7ecf\u6dfb\u52a0\u6743\u91cd\u5b57\u6bb5\uff0c\u5e76\u4e14\u5728{dede:arclist\u6807\u7b7e\u4e2d\u9ed8\u8ba4\u53ef\u4ee5\u4f7f\u7528\uff085.7\u4e2d\u7684{dede:arclist}\u4e5f\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\uff09\u3002\u4f46\u5728\u5217\u8868\u9875\u7684\u6807\u7b7e {dede:list\u4e2d\u662f\u8fd8\u662f\u65e0\u6cd5\u6309\u6743\u91cd\u5b9e\u73b0\u6392\u5e8f\u3002(v5.7\u4e2d\uff0c{dede:list}\u4e5f\u53ef\u4ee5\u8fd9\u6837\u6539)<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u89e3\u51b3\u65b9\u6cd5:<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">1\u3001\u6253\u5f00\\include\\\u76ee\u5f55\u4e2d\u7684arc.listview.class.php\u6587\u4ef6\uff0c\u641c\u7d22&ldquo;\u6392\u5e8f\u65b9\u5f0f&rdquo;\uff0c\u7136\u540e\u5728<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">else if($orderby==&quot;lastpost&quot;) {&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">$ordersql = &quot; order by arc.lastpost $orderWay&quot;;&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">}&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u8fd9\u6bb5\u4ee3\u7801\u548c<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">else {&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">$ordersql=&quot; order by arc.sortrank $orderWay&quot;;&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">}&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u8fd9\u6bb5\u4ee3\u7801\u4e2d\u95f4\u7c98\u8d34\u4e0a<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">else if($orderby == &#39;weight&#39;) $ordersql = &quot; order by arc.weight asc&quot;;&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">&nbsp;&nbsp;&nbsp;<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u627e\u5230&nbsp;&nbsp;&nbsp;&nbsp; if(preg_match(&#39;hot|click|lastpost&#39;,$orderby))<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u4fee\u6539\u6210&nbsp;&nbsp; if(preg_match(&#39;hot|click|lastpost|weight&#39;,$orderby))<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u4fdd\u5b58\u6587\u4ef6\u3002<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u8fd9\u4e2a\u65f6\u5019\u5728\u5217\u8868\u9875\u91cc\u5c31\u53ef\u4ee5\u4f7f\u7528<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">{dede:list pagesize=&#39;5&#39; orderby=&#39;weight&#39; orderway=&quot;asc&quot;}<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u8fdb\u884c\u6392\u5e8f\u4e86\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>dedecms v5.6\\v5.7\u5217\u8868\u9875\u6807\u7b7e{dede:list\u589e\u52a0\u6309\u6743\u91cd\u6392\u5e8f\u6807\u7b7e<br \/>\ndedecms v5.6\u7248\u672c\u5df2\u7ecf\u4e2d\u5df2\u7ecf\u6dfb\u52a0\u6743\u91cd\u5b57\u6bb5\uff0c\u5e76\u4e14\u5728{dede:arclist\u6807\u7b7e\u4e2d\u9ed8\u8ba4\u53ef\u4ee5\u4f7f\u7528\uff085.7\u4e2d\u7684{dede:arclist}\u4e5f\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\uff09\u3002\u4f46\u5728\u5217\u8868\u9875\u7684\u6807\u7b7e {dede:list\u4e2d\u662f\u8fd8\u662f\u65e0\u6cd5\u6309\u6743\u91cd\u5b9e\u73b0\u6392\u5e8f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"tcat":[],"_links":{"self":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts\/484"}],"collection":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=484"}],"version-history":[{"count":0,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts\/484\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=484"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=484"},{"taxonomy":"tcat","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftcat&post=484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}