为何加了代码 B.prototype = new A('test') 后,
B.prototype.constructor变为function A(){}
function A(){}
console.log(A.prototype.constructor);//function A(){}
function B(){}
console.log(B.prototype.constructor);//function B(){}
B.prototype = new A('test');
console.log(A.prototype.constructor);//function A(){}
console.log(B.prototype.constructor);//function A(){}
qq_遁去的一_1
关于x和y轴的方向问题
请教一下关于constructor的问题
关于highlight()中this的指向问题
this的指向问题,有哪位小伙伴知道
相关分类