{"id":1424,"date":"2015-01-12T16:26:49","date_gmt":"2015-01-12T08:26:49","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1424"},"modified":"2015-01-12T16:26:49","modified_gmt":"2015-01-12T08:26:49","slug":"%e5%a5%bd%e7%94%a8%e4%b8%94%e7%ae%80%e5%8d%95%e7%9a%84php%e5%86%85%e5%ae%b9%e5%88%86%e9%a1%b5%e5%87%bd%e6%95%b0-%e8%bd%ac","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1424","title":{"rendered":"\u597d\u7528\u4e14\u7b80\u5355\u7684php\u5185\u5bb9\u5206\u9875\u51fd\u6570-\u8f6c"},"content":{"rendered":"
\r\n$total-1?$total:$nowpage+1;\r\n \/\/\u6700\u540e\u4e00\u9875\r\n\r\n $lastpage = $total;\r\n $pdiv = '';\r\n $pdiv .= \"\u7b2c{$nowpage}\u9875 \/ \u603b{$total}\u9875 \";\r\n \/\/\u9996\u9875\u94fe\u63a5\r\n\r\n $pdiv .= \"\u9996\u9875<\/a><\/li>\";\r\n \/\/\u4e0a\u9875\u94fe\u63a5\r\n\r\n $pdiv .= \" \u4e0a\u4e00\u9875 <\/a><\/li>\";\r\n \/\/\u663e\u793a\u5206\u9875\u5217\u8868\r\n\r\n $color = '';\r\n for($i = 1; $i<=$total; $i++)\r\n {\r\n if($i == $nowpage)\r\n {\r\n $color= \"color:#ff0000;\";\r\n }\r\n else\r\n {\r\n $color = '';\r\n }\r\n $pdiv .= \" {$i}<\/span><\/a><\/li>\";\r\n }\r\n \/\/\u4e0b\u9875\u94fe\u63a5\r\n\r\n $pdiv .= \" \u4e0b\u4e00\u9875<\/a><\/li>\";\r\n \/\/\u672b\u9875\u94fe\u63a5\r\n\r\n $pdiv .= \" \u672b\u9875 <\/a><\/li>\";\r\n $pdiv .= '<\/div>';\r\n \/\/\u8f93\u51fa\u5185\u5bb9\r\n\r\n echo $arr[$nowpage-1];\r\n \/\/\u4e0d\u5206\u9875\u5219\u4e0d\u663e\u793a\u5206\u9875\u5217\u8868\r\n\r\n if( $total <=1) $pdiv = '';\r\n \/\/\u8f93\u51fa\u5206\u9875\u5217\u8868\r\n\r\n echo $pdiv;\r\n}\r\n\r\n\r\n?>\r\n<\/pre>\n \u539f\u6587\u5730\u5740\uff1ahttp:\/\/blog.chinaunix.net\/uid-21334635-id-1827743.html<\/p>\n","protected":false},"excerpt":{"rendered":"
\u539f\u6587\u5730\u5740\uff1ahttp:\/\/blog.chinaunix.net\/uid-21334635-id-1827743.html<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,224],"tags":[257],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1424"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1424"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1424\/revisions"}],"predecessor-version":[{"id":1425,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1424\/revisions\/1425"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1424"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}