function A(){
this.x='x';
}
function B(){
this.y='y';
}
B.prototype=new A();
B.prototype.constructor=B;
为什么原型链是 B---Object(A的实例)---A.prototype---Object?
明明是A的实例为什么显示Object? 
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
刚刚没看清楚问题
我在chrome下测试,结果如下
chrome版本不一样原型链竟然也不一样...