原文地址:http://www.cnblogs.com/sanshi/archive/2009/07/08/1519036.html面向对象与基于对象几乎每个开发人员都有面向对象语言(比如C++、C#、Java)的开发经验。在传统面向对象的…
1、原型链继承functionParent(){this.name='kevin';}Parent.prototype.getName=function(){console.log(this.name);}functionChild(){}…