JavaScript (1)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.