{"action":"opened","issue":{"url":"https://api.github.com/repos/iu2fish/iu2fish.github.com/issues/35","labels_url":"https://api.github.com/repos/iu2fish/iu2fish.github.com/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/iu2fish/iu2fish.github.com/issues/35/comments","events_url":"https://api.github.com/repos/iu2fish/iu2fish.github.com/issues/35/events","html_url":"https://github.com/iu2fish/iu2fish.github.com/issues/35","id":59756982,"number":35,"title":"javascript中写cookie的方法","user":{"login":"iu2fish","id":2611161,"avatar_url":"https://avatars.githubusercontent.com/u/2611161?v=3","gravatar_id":"","url":"https://api.github.com/users/iu2fish","html_url":"https://github.com/iu2fish","followers_url":"https://api.github.com/users/iu2fish/followers","following_url":"https://api.github.com/users/iu2fish/following{/other_user}","gists_url":"https://api.github.com/users/iu2fish/gists{/gist_id}","starred_url":"https://api.github.com/users/iu2fish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iu2fish/subscriptions","organizations_url":"https://api.github.com/users/iu2fish/orgs","repos_url":"https://api.github.com/users/iu2fish/repos","events_url":"https://api.github.com/users/iu2fish/events{/privacy}","received_events_url":"https://api.github.com/users/iu2fish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-04T06:40:39Z","updated_at":"2015-03-04T06:40:39Z","closed_at":null,"body":"<pre>\r\nfunction setCookie(cname, cvalue, exdays) {\r\n    var d = new Date();\r\n    d.setTime(d.getTime() + (exdays*24*60*60*1000));\r\n    var expires = \"expires=\"+d.toUTCString();\r\n    document.cookie = cname + \"=\" + cvalue + \"; \" + expires;\r\n}\r\nsetCookie('StartCity_Pkg','PkgStartCity=177;path=/;domain=ctrip.com',30);\r\n</pre>"}}