Common JavaScript internal objects

Source: Internet
Author: User
Tags access properties

References to JavaScript internal objects are closely centered around their attributes and methods. Therefore, it is of great significance to clarify the static nature of objects for understanding and understanding JavaScript internal objects. Let's take a look at it.

Common JavaScript internal objects

In JavaScript, object attributes and methods are referenced in two situations: one is that the object is a static object, that is, you do not need to create an instance for the object when referencing its properties or methods. The other object must create an instance for the object or method that references the object, that is, this object is a dynamic object. References to JavaScript internal objects are closely centered around their attributes and methods. Therefore, it is of great significance to understand and understand the static nature of objects in JavaScript.

1. String object

String object: internal static. You can use the.) operator to access properties and methods.

◆ Basic format: math object of objectName. prop/methods arithmetic function.

◆ Function: provides some self-reported operations except addition, subtraction, multiplication, and division. Such as logarithm and square root.

◆ Static: static object

2. Date and Time objects

◆ Function: provides an object related to date and time.

◆ Static: Dynamic. You must use the New operator to create an instance.

In addition, JavaScript contains Array objects, browsers, HTML and other objects. The objects in the HTML object model have the characteristics of the general object programming language and have attributes, methods, and events. These objects are closely related to the information and interactivity that web pages can provide for users. The relationship between these objects can be expressed through 4-1.


Figure 4-1 Relationship Diagram between HTML Objects

Summary: I believe that the readers have a clear understanding of the page description language, such as JavaScript. In fact, the JavaScript language has many usage and usage in the page description, since the author's level and ability are limited, he cannot explain them one by one. Interested readers can find related books to continue learning.
 

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.