实例对象(instance)的__proto__属性和构造函数(constructor)的prototype属性是否指向同一对象?
function Person(name) {
this.name = name;
}
var per = new Person("小明");
console.log(Person.prototype == per.__proto__); //结果为true
由此可知,instance.__proto__
和constructor.prototype
指向同一原型对象。