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.