并不是所有函数都有 prototype 属性 构造函数有 prototype普通函数没有 prototype属性 原型链 使用原型实现继承thisnew ES6 中的 class 实现继承, extends https://juejin.cn/post/6844903780035592205