js:借用构造函数

 原型继承会造成所有的对象属性相同,为解决这一问题使用借用构造函数

   

看到这我觉得被书给deceived了,很少用~~~

原文地址:https://www.cnblogs.com/lonely-buffoon/p/5960531.html