1 The variability of the Code
Everything is an object in JavaScript.
Function can also be a property of an instance object
In (A in ARR) determines whether the properties of an array object exist return True/false
The InsertBefore () method inserts a new child node before you specify an existing child node.
AppendChild () Adds a child node to the inside.
__proto__ Object Interior Properties
The NodeType property returns the node type that returns the specified node as a numeric value. 12
Overwrite the Init constructor's prototype object for cross-domain access
Using the call or Apply method, the ShowName () method that originally belonged to the animal object is given to the object cat.
The input result is "Cat"
Animal.showName.call (Cat, ",");
Undefined data type his value is only one: undefined represents a variable declaration, but is not assigned a value
See 004array.html
See 019_oop.html
isPrototypeOf (new instance); The method of judging the prototype
ECMA5:Object.getPrototypeOf (): Get prototype objects based on instance object
The in operator determines whether a property exists in the instance object and the prototype pair
var p1 = new Person ();
Alert (' name ' in P1); True
Math.max (A, b,..., x, y)--Returns the larger value in several numbers
typeof operator Judging Variable type
The toLowerCase () method is used to convert a string to lowercase.
Instanceof to detect that an object is not an instance of another object.
The RemoveChild () method specifies a specified child node of an element.
JavaScript (1)