摘要:
Object.getPrototypeOf(object):调用对象父类原型上的方法;function Person(){ this.method1 = function(){alert(1)}}Person.prototype.method2 = function(){alert(2);} function Man(){ this.m1 = function(){ Object.getPrototypeOf(this).method1(); }}Man.prototype = new Person(); Man.prototype.m2 = function(... 阅读全文