帮忙解释一下输出的结果为什么是333和aaa
function superClass () {
this.c =333;
this.d ='bbb';
}
function subClass () {
this.c =222;
superClass.call(this);
this.d ='aaa';
console.log(this.c);//333
console.log(this.d);//aaa
subClass();
慕村225694
相关分类