1
0
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:
ruanyf 2022-10-18 21:11:54 +08:00
parent 36b55b9ec9
commit ef5e3a2ea3

View File

@ -120,7 +120,7 @@ Object.assign(Point.prototype, {
});
```
`prototype`对象的`constructor()`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。
`prototype`对象的`constructor`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。
```javascript
Point.prototype.constructor === Point // true