{"action":"created","comment":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/62493697","id":62493697,"diff_hunk":"@@ -146,209 +145,209 @@ Classes created with `extends` are called **subclasses**, or **derived classes**\n     const fat_free_yogurt = new FatFreeFood('Greek Yogurt', 16, 12);\n     fat_free_yogurt.print(); // 'Greek Yogurt | 26g P :: 16g C :: 0g F  /  Would you look at that -- Greek Yogurt has no fat!'\n \n-Everything we discussed above regarding base classe holds true for derived classes, but with a few additional points.\n+派生类拥有我们上文讨论的一切有关基类的特性，另外还有如下几点新特点：\n \n-*   Subclasses are declared with the `class` keyword, followed by an identifier, and then the `extends` keyword, followed by an _arbitrary expression_. This will generally just be an identifier, [but could, in theory, be a function](https://gist.github.com/sebmarkbage/fac0830dbb13ccbff596).\n-*   If your derived class needs to refer to the class it extends, it can do so with the `super` keyword.\n-*   A derived class can't contain an empty constructor. Even if all the constructor does is call `super()`, you'll still have to do so explicitly. It can, however, contain _no_ constructor.\n-*   You _must_ call `super` in the constructor of a derived class before you use `this`.\n+* 子类使用 `class` 关键字声明，之后写标识符，然后写 `extend` 关键字，最后写一个**任意表达式**。这个表达式通常来讲就是个标识符，但[理论上也可以是函数](https://gist.github.com/sebmarkbage/fac0830dbb13ccbff596)。","path":"TODO/better-javascript-with-es6-pt-ii-a-deep-dive-into-classes.md","position":198,"original_position":198,"commit_id":"0e9bded1f5578269a11c3eb8fa3e774622add5bc","original_commit_id":"0e9bded1f5578269a11c3eb8fa3e774622add5bc","user":{"login":"Jack-Kingdom","id":10584772,"avatar_url":"https://avatars.githubusercontent.com/u/10584772?v=3","gravatar_id":"","url":"https://api.github.com/users/Jack-Kingdom","html_url":"https://github.com/Jack-Kingdom","followers_url":"https://api.github.com/users/Jack-Kingdom/followers","following_url":"https://api.github.com/users/Jack-Kingdom/following{/other_user}","gists_url":"https://api.github.com/users/Jack-Kingdom/gists{/gist_id}","starred_url":"https://api.github.com/users/Jack-Kingdom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jack-Kingdom/subscriptions","organizations_url":"https://api.github.com/users/Jack-Kingdom/orgs","repos_url":"https://api.github.com/users/Jack-Kingdom/repos","events_url":"https://api.github.com/users/Jack-Kingdom/events{/privacy}","received_events_url":"https://api.github.com/users/Jack-Kingdom/received_events","type":"User","site_admin":false},"body":"这个表达式通常来讲就是个标识符 >> 这个表达式通常只是一个标识符","created_at":"2016-05-09T13:02:39Z","updated_at":"2016-05-09T13:02:39Z","html_url":"https://github.com/xitu/gold-miner/pull/312#discussion_r62493697","pull_request_url":"https://api.github.com/repos/xitu/gold-miner/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/62493697"},"html":{"href":"https://github.com/xitu/gold-miner/pull/312#discussion_r62493697"},"pull_request":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/312","id":68495973,"html_url":"https://github.com/xitu/gold-miner/pull/312","diff_url":"https://github.com/xitu/gold-miner/pull/312.diff","patch_url":"https://github.com/xitu/gold-miner/pull/312.patch","issue_url":"https://api.github.com/repos/xitu/gold-miner/issues/312","number":312,"state":"open","locked":false,"title":"使用ES6写更好的JavaScript part II：A Deep Dive into Classes","user":{"login":"malcolmyu","id":3203962,"avatar_url":"https://avatars.githubusercontent.com/u/3203962?v=3","gravatar_id":"","url":"https://api.github.com/users/malcolmyu","html_url":"https://github.com/malcolmyu","followers_url":"https://api.github.com/users/malcolmyu/followers","following_url":"https://api.github.com/users/malcolmyu/following{/other_user}","gists_url":"https://api.github.com/users/malcolmyu/gists{/gist_id}","starred_url":"https://api.github.com/users/malcolmyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malcolmyu/subscriptions","organizations_url":"https://api.github.com/users/malcolmyu/orgs","repos_url":"https://api.github.com/users/malcolmyu/repos","events_url":"https://api.github.com/users/malcolmyu/events{/privacy}","received_events_url":"https://api.github.com/users/malcolmyu/received_events","type":"User","site_admin":false},"body":"翻译完这篇《深入探究类》","created_at":"2016-05-01T13:28:21Z","updated_at":"2016-05-09T13:02:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93e459a18af8df36b9b5c9a2f3c5c3d5f262b696","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xitu/gold-miner/pulls/312/commits","review_comments_url":"https://api.github.com/repos/xitu/gold-miner/pulls/312/comments","review_comment_url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xitu/gold-miner/issues/312/comments","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/0e9bded1f5578269a11c3eb8fa3e774622add5bc","head":{"label":"malcolmyu:issue-301","ref":"issue-301","sha":"0e9bded1f5578269a11c3eb8fa3e774622add5bc","user":{"login":"malcolmyu","id":3203962,"avatar_url":"https://avatars.githubusercontent.com/u/3203962?v=3","gravatar_id":"","url":"https://api.github.com/users/malcolmyu","html_url":"https://github.com/malcolmyu","followers_url":"https://api.github.com/users/malcolmyu/followers","following_url":"https://api.github.com/users/malcolmyu/following{/other_user}","gists_url":"https://api.github.com/users/malcolmyu/gists{/gist_id}","starred_url":"https://api.github.com/users/malcolmyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malcolmyu/subscriptions","organizations_url":"https://api.github.com/users/malcolmyu/orgs","repos_url":"https://api.github.com/users/malcolmyu/repos","events_url":"https://api.github.com/users/malcolmyu/events{/privacy}","received_events_url":"https://api.github.com/users/malcolmyu/received_events","type":"User","site_admin":false},"repo":{"id":56571690,"name":"gold-miner","full_name":"malcolmyu/gold-miner","owner":{"login":"malcolmyu","id":3203962,"avatar_url":"https://avatars.githubusercontent.com/u/3203962?v=3","gravatar_id":"","url":"https://api.github.com/users/malcolmyu","html_url":"https://github.com/malcolmyu","followers_url":"https://api.github.com/users/malcolmyu/followers","following_url":"https://api.github.com/users/malcolmyu/following{/other_user}","gists_url":"https://api.github.com/users/malcolmyu/gists{/gist_id}","starred_url":"https://api.github.com/users/malcolmyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malcolmyu/subscriptions","organizations_url":"https://api.github.com/users/malcolmyu/orgs","repos_url":"https://api.github.com/users/malcolmyu/repos","events_url":"https://api.github.com/users/malcolmyu/events{/privacy}","received_events_url":"https://api.github.com/users/malcolmyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malcolmyu/gold-miner","description":"掘金翻译计划，翻译掘金上优质的英文文章","fork":true,"url":"https://api.github.com/repos/malcolmyu/gold-miner","forks_url":"https://api.github.com/repos/malcolmyu/gold-miner/forks","keys_url":"https://api.github.com/repos/malcolmyu/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malcolmyu/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malcolmyu/gold-miner/teams","hooks_url":"https://api.github.com/repos/malcolmyu/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/malcolmyu/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/malcolmyu/gold-miner/events","assignees_url":"https://api.github.com/repos/malcolmyu/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/malcolmyu/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/malcolmyu/gold-miner/tags","blobs_url":"https://api.github.com/repos/malcolmyu/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malcolmyu/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malcolmyu/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/malcolmyu/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malcolmyu/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/malcolmyu/gold-miner/languages","stargazers_url":"https://api.github.com/repos/malcolmyu/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/malcolmyu/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/malcolmyu/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/malcolmyu/gold-miner/subscription","commits_url":"https://api.github.com/repos/malcolmyu/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/malcolmyu/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/malcolmyu/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/malcolmyu/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/malcolmyu/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/malcolmyu/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malcolmyu/gold-miner/merges","archive_url":"https://api.github.com/repos/malcolmyu/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malcolmyu/gold-miner/downloads","issues_url":"https://api.github.com/repos/malcolmyu/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/malcolmyu/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/malcolmyu/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/malcolmyu/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malcolmyu/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/malcolmyu/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/malcolmyu/gold-miner/deployments","created_at":"2016-04-19T06:43:13Z","updated_at":"2016-04-19T06:23:36Z","pushed_at":"2016-05-06T05:48:27Z","git_url":"git://github.com/malcolmyu/gold-miner.git","ssh_url":"git@github.com:malcolmyu/gold-miner.git","clone_url":"https://github.com/malcolmyu/gold-miner.git","svn_url":"https://github.com/malcolmyu/gold-miner","homepage":"http://gold.xitu.io","size":12824,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xitu:master","ref":"master","sha":"aed0aa84ce8d22edd7a302d690bfb25686cb6e36","user":{"login":"xitu","id":10482599,"avatar_url":"https://avatars.githubusercontent.com/u/10482599?v=3","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"repo":{"id":45512989,"name":"gold-miner","full_name":"xitu/gold-miner","owner":{"login":"xitu","id":10482599,"avatar_url":"https://avatars.githubusercontent.com/u/10482599?v=3","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xitu/gold-miner","description":"掘金翻译计划，翻译掘金上优质的英文文章","fork":false,"url":"https://api.github.com/repos/xitu/gold-miner","forks_url":"https://api.github.com/repos/xitu/gold-miner/forks","keys_url":"https://api.github.com/repos/xitu/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xitu/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xitu/gold-miner/teams","hooks_url":"https://api.github.com/repos/xitu/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/xitu/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/xitu/gold-miner/events","assignees_url":"https://api.github.com/repos/xitu/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/xitu/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/xitu/gold-miner/tags","blobs_url":"https://api.github.com/repos/xitu/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xitu/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xitu/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/xitu/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/xitu/gold-miner/languages","stargazers_url":"https://api.github.com/repos/xitu/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/xitu/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/xitu/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/xitu/gold-miner/subscription","commits_url":"https://api.github.com/repos/xitu/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/xitu/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/xitu/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/xitu/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/xitu/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/xitu/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xitu/gold-miner/merges","archive_url":"https://api.github.com/repos/xitu/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xitu/gold-miner/downloads","issues_url":"https://api.github.com/repos/xitu/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/xitu/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/xitu/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/xitu/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xitu/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/xitu/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/xitu/gold-miner/deployments","created_at":"2015-11-04T03:29:13Z","updated_at":"2016-05-09T09:34:07Z","pushed_at":"2016-05-09T12:45:25Z","git_url":"git://github.com/xitu/gold-miner.git","ssh_url":"git@github.com:xitu/gold-miner.git","clone_url":"https://github.com/xitu/gold-miner.git","svn_url":"https://github.com/xitu/gold-miner","homepage":"http://gold.xitu.io","size":13020,"stargazers_count":1492,"watchers_count":1492,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":293,"mirror_url":null,"open_issues_count":32,"forks":293,"open_issues":32,"watchers":1492,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/312"},"html":{"href":"https://github.com/xitu/gold-miner/pull/312"},"issue":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/312"},"comments":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/xitu/gold-miner/statuses/0e9bded1f5578269a11c3eb8fa3e774622add5bc"}}}}