Skip to content

Commit da70c9b

Browse files
wjw020206leviding
andauthored
fix: minor typo (#1248)
* Fix minor typo * feat: update 1-js/09-classes/07-mixins/article.md --------- Co-authored-by: LeviDing <imdingxuewen@gmail.com>
1 parent 0a388d0 commit da70c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/09-classes/07-mixins/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ new User("Dude").sayHi(); // Hello Dude!
103103

104104
这是因为方法 `sayHi``sayBye` 最初是在 `sayHiMixin` 中创建的。因此,即使复制了它们,但是它们的 `[[HomeObject]]` 内部属性仍引用的是 `sayHiMixin`,如上图所示。
105105

106-
`super``[[HomeObject]].[[Prototype]]` 中寻找父方法时,意味着它搜索的是 `sayHiMixin.[[Prototype]]`,而不是 `User.[[Prototype]]`
106+
`super``[[HomeObject]].[[Prototype]]` 中寻找父方法时,意味着它搜索的是 `sayHiMixin.[[Prototype]]`
107107

108108
## EventMixin
109109

0 commit comments

Comments
 (0)