{"action":"opened","issue":{"url":"https://api.github.com/repos/wlx200510/TypeScriptLearn/issues/2","repository_url":"https://api.github.com/repos/wlx200510/TypeScriptLearn","labels_url":"https://api.github.com/repos/wlx200510/TypeScriptLearn/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wlx200510/TypeScriptLearn/issues/2/comments","events_url":"https://api.github.com/repos/wlx200510/TypeScriptLearn/issues/2/events","html_url":"https://github.com/wlx200510/TypeScriptLearn/issues/2","id":327551770,"number":2,"title":"代码 review","user":{"login":"xcatliu","id":5453359,"avatar_url":"https://avatars0.githubusercontent.com/u/5453359?v=4","gravatar_id":"","url":"https://api.github.com/users/xcatliu","html_url":"https://github.com/xcatliu","followers_url":"https://api.github.com/users/xcatliu/followers","following_url":"https://api.github.com/users/xcatliu/following{/other_user}","gists_url":"https://api.github.com/users/xcatliu/gists{/gist_id}","starred_url":"https://api.github.com/users/xcatliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcatliu/subscriptions","organizations_url":"https://api.github.com/users/xcatliu/orgs","repos_url":"https://api.github.com/users/xcatliu/repos","events_url":"https://api.github.com/users/xcatliu/events{/privacy}","received_events_url":"https://api.github.com/users/xcatliu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T02:32:17Z","updated_at":"2018-05-30T02:32:17Z","closed_at":null,"author_association":"NONE","body":"https://github.com/wlx200510/TypeScriptLearn/blob/e48ae0a37220d84bea407f6e1ce14a9506fe92eb/src/Todo.ts#L38-L42\r\n\r\n这里也可以每次执行完 `this.items[index].done = !this.items[index].done` 之后，就执行 `this.updateUlElement()` 重新渲染所有内容，然后在渲染的时候，根据 `done` 的取值决定要不要 `line-through`。\r\n也就是类似 react 等框架的思想，只是没有虚拟 dom 了。\r\n\r\n其他部分不错 :+1: "}}
{"actor":{"display_login":"xcatliu"}}