var someObj = function() { }
var p = new someObj();
alert(someObj.prototype); // This works
alert(p.prototype); // UNDEFINED, but why?
someObj.prototype.model= "Nissan";
alert(p.model); // This works! I understand the dynamic nature of prototypes, but doesn't that mean that p.prototype === someObj.prototype?
为什么会这样呢?由于“p”是“someObj”的一个实例,为什么原型是未定义的?我的意思是,当我向“someObj”原型添加属性时,它可以被“p”访问,那么为什么原型无法访问?