构造函数的原型链问题
function Student(name){
this.name=name;
}
// Student 构造函数 通过 Student.portotype 指向 Student.portotype原型对象
// Student 原型对象 通过 Student.portotype.constructor 指向 Student 构造函数
var stu=new Student('张三');
// stu 通过 new Student 实例化对象
// stu 实例对象 的stu._proto_ 指向的是 Student.portotype 原型对象
// Student.portotype 原型对象Student.portotype._proto_ 指向的是 Object 原型对象
// Object 原型对象 通过 Object.portotype 指向 Object 构造函数
// Object 构造函数 通过 Object.portotype.constaructor 指向 Student 构造函数
// Object 原型对象 通过 Object.portotype._proto_ 指向的 null
原型链 查找机制
1 先从实例化本身查找
2 实例对象没有 就找 原型对象
3 原型对象没有就往上找 object 原型对象里面有无知道找不到然后就为空 返回的是 undefined