js type of object

Features:
Examples of common attributes and methods for each type Object:
constructor: Save the function used to create the current object.
 hasOwnProperty: given attribute for detecting whether there is a current object instance.
 isPrototypeOf: Object for checking whether the incoming current prototype object
 propertyIsEnumerble: checking for a given property can be enumerated using the for-in
 toLocaleString (): Returns a string representation.
 toString (): Returns a string representation.
 valueOf (): returns the object string, numeric, or Boolean representation. Usually toString () returns the same value.

Guess you like

Origin www.cnblogs.com/Annely/p/11925646.html
Recommended