{"action":"created","issue":{"url":"https://api.github.com/repos/FrankKai/FrankKai.github.io/issues/86","repository_url":"https://api.github.com/repos/FrankKai/FrankKai.github.io","labels_url":"https://api.github.com/repos/FrankKai/FrankKai.github.io/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/FrankKai/FrankKai.github.io/issues/86/comments","events_url":"https://api.github.com/repos/FrankKai/FrankKai.github.io/issues/86/events","html_url":"https://github.com/FrankKai/FrankKai.github.io/issues/86","id":345756319,"node_id":"MDU6SXNzdWUzNDU3NTYzMTk=","number":86,"title":"vue源码中\"好的写法\"","user":{"login":"FrankKai","id":19262750,"node_id":"MDQ6VXNlcjE5MjYyNzUw","avatar_url":"https://avatars1.githubusercontent.com/u/19262750?v=4","gravatar_id":"","url":"https://api.github.com/users/FrankKai","html_url":"https://github.com/FrankKai","followers_url":"https://api.github.com/users/FrankKai/followers","following_url":"https://api.github.com/users/FrankKai/following{/other_user}","gists_url":"https://api.github.com/users/FrankKai/gists{/gist_id}","starred_url":"https://api.github.com/users/FrankKai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrankKai/subscriptions","organizations_url":"https://api.github.com/users/FrankKai/orgs","repos_url":"https://api.github.com/users/FrankKai/repos","events_url":"https://api.github.com/users/FrankKai/events{/privacy}","received_events_url":"https://api.github.com/users/FrankKai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-30T13:24:27Z","updated_at":"2018-07-31T03:44:23Z","closed_at":null,"author_association":"OWNER","body":"从一个小白的角度，记录自己在阅读vue源码过程中觉得是\"好的写法\"的部分。"},"comment":{"url":"https://api.github.com/repos/FrankKai/FrankKai.github.io/issues/comments/409084826","html_url":"https://github.com/FrankKai/FrankKai.github.io/issues/86#issuecomment-409084826","issue_url":"https://api.github.com/repos/FrankKai/FrankKai.github.io/issues/86","id":409084826,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTA4NDgyNg==","user":{"login":"FrankKai","id":19262750,"node_id":"MDQ6VXNlcjE5MjYyNzUw","avatar_url":"https://avatars1.githubusercontent.com/u/19262750?v=4","gravatar_id":"","url":"https://api.github.com/users/FrankKai","html_url":"https://github.com/FrankKai","followers_url":"https://api.github.com/users/FrankKai/followers","following_url":"https://api.github.com/users/FrankKai/following{/other_user}","gists_url":"https://api.github.com/users/FrankKai/gists{/gist_id}","starred_url":"https://api.github.com/users/FrankKai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrankKai/subscriptions","organizations_url":"https://api.github.com/users/FrankKai/orgs","repos_url":"https://api.github.com/users/FrankKai/repos","events_url":"https://api.github.com/users/FrankKai/events{/privacy}","received_events_url":"https://api.github.com/users/FrankKai/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T03:44:23Z","updated_at":"2018-07-31T03:44:23Z","author_association":"OWNER","body":"### 强制转换为boolean类型\r\n#### 小白写法\r\n```\r\nif(foo=='' || foo.toString()=='{}' || foo.toString()=='[]'){\r\n    foo = false;\r\n}\r\n```\r\n#### 好的写法\r\n```\r\n!!foo\r\n```"}}
{"actor":{"display_login":"FrankKai"}}