Inner object of JavaScript

Source: Internet
Author: User
Tags access properties object model square root

For references to object properties and methods in JavaScript , there are two scenarios: the first is that the object is a static object, that is, you do not need to create an instance of the object's properties or methods, and another object that references its object or method must create an instance of it. That is, the object is a dynamic object. A reference to a JavaScript inner object so that it is tightly centered around its properties and methods. Therefore, it is very important to understand the static motion of the object for mastering and understanding the inner object of JavaScript.

1. String objects

String object: Internal static. When you access properties and methods, you can use the (.) operator to implement.

• Basic usage Format: The Math object for objectname.prop/methods arithmetic functions.

• Function: Provides an introduction to some of the readme operations except addition, subtraction, multiplication and addition. such as logarithm, square root and so on.

• Static motion: Static Object

2, date and time object

• Function: Provides an object about the date and time.

• Static: Dynamic, that is, you must use the new operator to create an instance.

In addition, JavaScript has array objects, browsers, and HTML objects. The objects in the HTML object model have the properties, methods, and events of the general object programming language. These objects have a lot to do with the information and interactivity that Web pages can provide to users, and the relationship between them can be shown in Figure 4-1 below.

Diagram of the diagram between HTML objects

In this paper, we believe that the reader has a better understanding of JavaScript as a page description language, in fact, JavaScript language in the page description there are many uses and uses, because the author's level and ability is limited can not explain, Interested readers can find relevant books to continue with their studies.

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.