JS 原型和原型链总结
function Student(){} //创建一个函数
var str = new Student(); // new 一个对象
str.__proto__ === Student.prototype //true
实例str的__proto__ 等价于,函数Student的原型prototype
str.__.proto__.__proto__ === Student.prototype.__proto__; //true
str.__proto__.__proto__ === Object.prototype // true
Student.prototype.__proto__ === Object.prototype //true
只要思想不滑坡,办法总比困难多!