1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

docs(module-extends): edit extends

This commit is contained in:
ruanyf 2018-03-02 15:44:37 +08:00
parent b4f1226178
commit 3c7e8a6365

View File

@ -389,7 +389,7 @@ class B {
// B 的实例继承 A 的实例
Object.setPrototypeOf(B.prototype, A.prototype);
// B 的实例继承 A 的静态属性
// B 继承 A 的静态属性
Object.setPrototypeOf(B, A);
const b = new B();