http://www.cnblogs.com/nullcnb/p/3653262.html

alert(hasPrototypeProperty(person,"name")); //false 来自原型

person1.name="mywei";
alert(hasPrototypeProperty(person,"name")); //true 来自实例
相关文章
相关标签/搜索