{"action":"created","issue":{"url":"https://api.github.com/repos/Lojze/bolg/issues/14","repository_url":"https://api.github.com/repos/Lojze/bolg","labels_url":"https://api.github.com/repos/Lojze/bolg/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Lojze/bolg/issues/14/comments","events_url":"https://api.github.com/repos/Lojze/bolg/issues/14/events","html_url":"https://github.com/Lojze/bolg/issues/14","id":148608195,"number":14,"title":"代码日常记录","user":{"login":"Lojze","id":11644830,"avatar_url":"https://avatars.githubusercontent.com/u/11644830?v=3","gravatar_id":"","url":"https://api.github.com/users/Lojze","html_url":"https://github.com/Lojze","followers_url":"https://api.github.com/users/Lojze/followers","following_url":"https://api.github.com/users/Lojze/following{/other_user}","gists_url":"https://api.github.com/users/Lojze/gists{/gist_id}","starred_url":"https://api.github.com/users/Lojze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lojze/subscriptions","organizations_url":"https://api.github.com/users/Lojze/orgs","repos_url":"https://api.github.com/users/Lojze/repos","events_url":"https://api.github.com/users/Lojze/events{/privacy}","received_events_url":"https://api.github.com/users/Lojze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-15T09:28:29Z","updated_at":"2016-04-27T14:20:19Z","closed_at":null,"body":"*  在写东西时发现的\r\n*  看文章时候觉得有意思的  \r\n大概就这些"},"comment":{"url":"https://api.github.com/repos/Lojze/bolg/issues/comments/215098903","html_url":"https://github.com/Lojze/bolg/issues/14#issuecomment-215098903","issue_url":"https://api.github.com/repos/Lojze/bolg/issues/14","id":215098903,"user":{"login":"Lojze","id":11644830,"avatar_url":"https://avatars.githubusercontent.com/u/11644830?v=3","gravatar_id":"","url":"https://api.github.com/users/Lojze","html_url":"https://github.com/Lojze","followers_url":"https://api.github.com/users/Lojze/followers","following_url":"https://api.github.com/users/Lojze/following{/other_user}","gists_url":"https://api.github.com/users/Lojze/gists{/gist_id}","starred_url":"https://api.github.com/users/Lojze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lojze/subscriptions","organizations_url":"https://api.github.com/users/Lojze/orgs","repos_url":"https://api.github.com/users/Lojze/repos","events_url":"https://api.github.com/users/Lojze/events{/privacy}","received_events_url":"https://api.github.com/users/Lojze/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T14:20:19Z","updated_at":"2016-04-27T14:20:19Z","body":"## 限时抢购记录代码\r\n`window.onload = function(){`\r\n\t\t\t`showTime();`\r\n\t\t\t`function showTime(){`\r\n\t\t\t\t`var endtime = new Date (\"2016/05/15,12:20:12\")//结束时间`\r\n\t\t\t\t`var nowtime = new Date();//当前时间`\r\n\r\n\t\t\t\t`var lefttime = parseInt((endtime.getTime()-nowtime.getTime())/1000);`\r\n\r\n\t\t\t\t`var d = parseInt(lefttime/(24*60*60));//parseInt取整天数`\r\n\t\t\t\t`// alert(d);`\r\n\t\t\t\t`var h = parseInt(lefttime/(60*60)%24);//小时`\r\n\t\t\t\t`// alert(h)`\r\n\t\t\t\t`var m = parseInt(lefttime/60%60);`\r\n\t\t\t\t`var s = parseInt(lefttime%60);`\r\n\t\t\t\t`document.getElementById(\"id\").innerHTML = d+ \"天\" +h+\"小时\" + m \"分\" + s +\"秒\";`\r\n\t\t\t\tif (lefttime <=0) {\r\n\t\t\t\t\tdocument.getElementById(\"id\").innerHTML = '团购结束';\r\n\t\t\t\t};\r\n\t\t\t\tsetTimeout(showTime,500);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}`"}}