摘要: ES5继承在ES5中没有类的概念,所以一般都是基于原型链继承,具体的继承方法有以下几种: 父类: function Father (name) { this.name = name || 'sam' this.sleep = function () { // 实例方法 return this.nam 阅读全文