在此列中,将构造函数的constructor指向一个字符串后,其构造函数为字符串,那么developer.constructor.prototype就应该为undefined,但实例为什么仍能访问其构造函数原型链上的属性
var monkey = {
feeds:'bananas',
breathes:'air'
}
function Human(){}
Human.prototype = monkey;
var developer = new Human();
developer.constructor = 'junk'
developer.breathes ; //"air"
monkey.test =1;
developer.test;
developer.constructor !== developer.__proto__.constructor
简而言之,原型链是只读的,你只能访问而不能修改