ES5 中

image.png

Object.create(proto, [propertiesObject])
//方法创建一个新对象,使用现有的对象来提供新创建的对象的proto

image.png

ES6中 class 继承

利用 super 和 extends 关键字实现继承
image.png
image.png