function Person(name){
this.name=name;
}
var tom=new Person('Tom');
Person.prototype.hair=true;
tom.name; //Tom
tom.hasOwnProperty('hair'); //false
tom.hasOwnProperty('name'); //true
Person.prototype.isPrototypeOf(tom); //true
tom.constructor===Person; //true
tom.propertyIsEnumerable('hair'); //false,不可使用for-in枚举
tom.propertyIsEnumerable('name'); //true
tom.toString(); //[object Object]
tom.valueOf(); //Person {name: "tom"}
constructor
hasOwnProperty()
isPrototypeOf()
propertyIsEnumerable()
toLocaleString()
toString()
valueOf()