JavaScript 3 built-objects

 

Earlier we learned objects, how to create objects and use objects.

Does not require built-in objects instantiated, it can be used.

Be popular understanding, the stuff is in memory of the object, which is instantiated good. Stuff on disk is the class needs to be instantiated to use. Stuff after instantiated in memory. Uninitialized stuff on disk.

Next, we study three groups of objects already created, and three group objects to use in their daily work very high frequency.

This set of objects is 3:

1, browser object model

2, Document Object Model

3. The global JavaScript object

A browser object model

Browser object model used to create the model of the browser window.

The top of the window object.

below the object window object is a child object, the child object may have child objects, objects can be nested. Like the box can recapture the box, the array can be stored as an array.

Two Document Object Model

Document Object Model (DOM) to create a model for the current page.

There are many other ways to document the operation HTML elements.

Three global JavaScript object

The global JavaScript object name is usually capitalized.

Objects effect
 String Working with strings
Number  Digital processing
Boolean Processing Boolean value
Date  Processing date
Math Computing and processing the digital
REgEx Text string pattern matching

Earlier we learned objects, how to create objects and use objects.

Does not require built-in objects instantiated, it can be used.

Be popular understanding, the stuff is in memory of the object, which is instantiated good. Stuff on disk is the class needs to be instantiated to use. Stuff after instantiated in memory. Uninitialized stuff on disk.

Next, we study three groups of objects already created, and three group objects to use in their daily work very high frequency.

This set of objects is 3:

1, browser object model

2, Document Object Model

3. The global JavaScript object

A browser object model

Browser object model used to create the model of the browser window.

The top of the window object.

below the object window object is a child object, the child object may have child objects, objects can be nested. Like the box can recapture the box, the array can be stored as an array.

Two Document Object Model

Document Object Model (DOM) to create a model for the current page.

There are many other ways to document the operation HTML elements.

Three global JavaScript object

The global JavaScript object name is usually capitalized.

Objects effect
 String Working with strings
Number  Digital processing
Boolean Processing Boolean value
Date  Processing date
Math Computing and processing the digital
REgEx Text string pattern matching

Guess you like

Origin www.cnblogs.com/lszw/p/11026598.html