function Parent(name){
this.name = name;
return this.init;
}
Parent.prototype = {
name : '',
init : function(){
return this;
}
}
Parent.prototype.son = {}
======================
在 Parent.prototype.son 的方法中,如何访问Parent.prototype.name这个属性。
this.name = name;
return this.init;
}
Parent.prototype = {
name : '',
init : function(){
return this;
}
}
Parent.prototype.son = {}
======================
在 Parent.prototype.son 的方法中,如何访问Parent.prototype.name这个属性。