细说 js 的7种继承方式

在这之前,先搞清楚下面这个问题: function Father(){} Father.prototype.name = 'father'; Father.prototype.children = []; const child1 = new Father(); console.log('get1 ==',child1); // Father {} console.log('get ==',child1.name); // father console.log('get ==',child1.chil...