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