mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
docs(class): fix typo
This commit is contained in:
parent
36b55b9ec9
commit
ef5e3a2ea3
@ -120,7 +120,7 @@ Object.assign(Point.prototype, {
|
||||
});
|
||||
```
|
||||
|
||||
`prototype`对象的`constructor()`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。
|
||||
`prototype`对象的`constructor`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。
|
||||
|
||||
```javascript
|
||||
Point.prototype.constructor === Point // true
|
||||
|
Loading…
x
Reference in New Issue
Block a user