document.write('

解析: 原型链继承,通过对象 Child 的 prototype 属性指向父对象 Parent 的实例, 使 Child 对象实例能通过原型链访问到父对象构造所定义的属性、方法等。 使用 apply、call 方法,由于 JavaScript 内置的 Function 对象的 apply、call 方法改变了对象构造中“this”的上下文环境,使特定的对象实例具有对象构造 中所定义的属性、方法。 对象实例间的继承,JavaScript 对象的多态性,允许实例动态地添加属性、 方法。该特性造就了 JavaScript 中的另一种继承手法——对象实例间的继承.

例:function Parent(){};

 function Child(){};

 Child.prototype = new Parent();

 Child.prototype.constructor = Child;

 var child = new Child();

 alert(child.constructor);//function Parent(){};

 alert(child instanceof Child);//true

');