function Ff(){} //undefined Ff.prototype={a:"ss"} //Object {a: "ss"} var f1= new Ff() //undefined Ff.prototype.constructor //Object() { [native code] } f1.constructor //Object() { [native code] }
重写prototype,导致实例的constructor发生改变。
原文:http://www.cnblogs.com/darr/p/5004650.html