{"action":"created","issue":{"url":"https://api.github.com/repos/zhufengnodejs/201601node/issues/5","repository_url":"https://api.github.com/repos/zhufengnodejs/201601node","labels_url":"https://api.github.com/repos/zhufengnodejs/201601node/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/zhufengnodejs/201601node/issues/5/comments","events_url":"https://api.github.com/repos/zhufengnodejs/201601node/issues/5/events","html_url":"https://github.com/zhufengnodejs/201601node/issues/5","id":138746459,"number":5,"title":"3. 实现拷贝文件的方法  function copy(src,target)","user":{"login":"zhufengnodejs","id":11471150,"avatar_url":"https://avatars.githubusercontent.com/u/11471150?v=3","gravatar_id":"","url":"https://api.github.com/users/zhufengnodejs","html_url":"https://github.com/zhufengnodejs","followers_url":"https://api.github.com/users/zhufengnodejs/followers","following_url":"https://api.github.com/users/zhufengnodejs/following{/other_user}","gists_url":"https://api.github.com/users/zhufengnodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/zhufengnodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhufengnodejs/subscriptions","organizations_url":"https://api.github.com/users/zhufengnodejs/orgs","repos_url":"https://api.github.com/users/zhufengnodejs/repos","events_url":"https://api.github.com/users/zhufengnodejs/events{/privacy}","received_events_url":"https://api.github.com/users/zhufengnodejs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-03-06T02:54:59Z","updated_at":"2016-03-06T03:02:50Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/zhufengnodejs/201601node/issues/comments/192786733","html_url":"https://github.com/zhufengnodejs/201601node/issues/5#issuecomment-192786733","issue_url":"https://api.github.com/repos/zhufengnodejs/201601node/issues/5","id":192786733,"user":{"login":"cool19910317","id":15872895,"avatar_url":"https://avatars.githubusercontent.com/u/15872895?v=3","gravatar_id":"","url":"https://api.github.com/users/cool19910317","html_url":"https://github.com/cool19910317","followers_url":"https://api.github.com/users/cool19910317/followers","following_url":"https://api.github.com/users/cool19910317/following{/other_user}","gists_url":"https://api.github.com/users/cool19910317/gists{/gist_id}","starred_url":"https://api.github.com/users/cool19910317/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cool19910317/subscriptions","organizations_url":"https://api.github.com/users/cool19910317/orgs","repos_url":"https://api.github.com/users/cool19910317/repos","events_url":"https://api.github.com/users/cool19910317/events{/privacy}","received_events_url":"https://api.github.com/users/cool19910317/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T03:02:50Z","updated_at":"2016-03-06T03:02:50Z","body":"```javascript\r\nfunction copy(src,target){\r\n  var fs = require('fs');\r\n  fs.readFile(src,'utf8',function(err,data){\r\n    if(err){\r\n      console.error(err);\r\n    }else{\r\n      fs.writeFile(target,data,'utf8',function(err){\r\n        if(err){\r\n          console.error(err);\r\n        }else{\r\n          console.log('success');\r\n        }\r\n      })\r\n    }\r\n  })\r\n}\r\ncopy('./name.txt','./name.bak.txt');\r\n```"}}