继承的几种方式 1.原型继承: 继承私有属性和公有属性,父类的所有属性,都变成了子类的公有属性 2.中间类继承: 3.call继承 继承私有 4.寄生组合式继承 用call继承和Object.create()配合