试图理解下面的输出 - 为什么直接在对象上使用时检查为假 - 但在实例上检查时为真?有人可以解释一下 - 我在这里遗漏了什么吗?
function Book2(){
this.title = "High Performance JavaScript";
this.publisher = "Yahoo! Press";
};
Book2.prototype.author = "hgghghg";
var b = new Book2();
alert(Book2.hasOwnProperty("title")); //false
alert(Book2.hasOwnProperty("toString")); //false
alert("title" in Book2); //false
alert("toString" in Book2); //true
alert(b.hasOwnProperty("title")); //true
alert(b.hasOwnProperty("toString")); //false
alert("title" in b); //true
alert("toString" in b); //true