alert(hasPrototypeProperty(person,"name")); //false 來自原型 person1.name="mywei"; alert(hasPrototypeProperty(person,"name")); //true 來自實例