{"id":1109,"date":"2017-04-08T23:14:15","date_gmt":"2017-04-08T15:14:15","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1109"},"modified":"2017-04-08T23:14:15","modified_gmt":"2017-04-08T15:14:15","slug":"dedecms%e8%b0%83%e7%94%a8%e7%bd%91%e7%ab%99%e5%bb%ba%e7%ab%99%e5%a4%a9%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1109.html","title":{"rendered":"dedecms\u8c03\u7528\u7f51\u7ad9\u5efa\u7ad9\u5929\u6570"},"content":{"rendered":"
\u9996\u5148\u5728\u9700\u8981\u8c03\u7528\u7684\u9875\u9762\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
<script>\r\nvar s1 = '2017-01-24';\/\/\u8bbe\u7f6e\u4e3a\u4f60\u7684\u5efa\u7ad9\u65f6\u95f4\r\ns1 = new Date(s1.replace(\/-\/g, \"\/\"));\r\ns2 = new Date()\r\nvar days = s2.getTime() - s1.getTime();\r\nvar number_of_days = parseInt(days \/ (1000 * 60 * 60 * 24));\r\ndocument.getElementById('days').innerHTML = number_of_days;\r\n<\/script><\/code><\/pre>\n\u4e0a\u8ff0\u4e2d\u76842017-01-24\u4fee\u6539\u6210\u4f60\u5efa\u7ad9\u7684\u7b2c\u4e00\u5929\u65e5\u671f\uff0c\u7136\u540e\u5c31\u4f1a\u8ba1\u7b97\u51fa\u4f60\u7684\u5efa\u7ad9\u5929\u6570\u4e86\u3002<\/p>\n
\u6211\u4eec\u5728\u9875\u9762\u4e2d\u8c03\u7528\u7684\u4ee3\u7801<\/p>\n
<span class=\"bignum\" id=\"days\"><\/span><\/code><\/pre>\n\u4e0a\u8ff0\u4e2d\u4e3b\u8981\u662f\u7ed9\u4ee3\u7801\u8d4b\u503c id=days \uff0c\u7136\u540e\u5c31\u80fd\u663e\u793a\u5177\u4f53\u7684\u6570\u5b57\uff08\u5929\u6570\uff09\uff0c\u5176\u4f59\u7684\u6837\u5f0f\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u81ea\u884c\u4fee\u6539\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u9996\u5148\u5728\u9700\u8981\u8c03\u7528\u7684\u9875\u9762\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a <script> var s1 = '2017-01-24';\/ […]<\/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,307],"class_list":["post-1109","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-307"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1109","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=1109"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1109\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}