摘要:
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(... 阅读全文
posted @ 2012-10-25 11:45
zwei1989
阅读(2438)
评论(0)
推荐(1)
浙公网安备 33010602011771号