JavaScript stage summary (2): javascript stage summary

Source: Internet
Author: User

JavaScript stage summary (2): javascript stage summary

Previously, I have summarized the concept, development, and basic language of JavaScript and mastered some basic usage. JavaScript videos basically describe details, and we also need to have a global understanding to deepen our understanding.

After learning the first 14 chapters, I looked back at the content and used the relevant materials to reorganize and summarize the content. For example:

 

The first step is to briefly introduce the development of JavaScript. We only need to understand this content. Next we will give a detailed introduction to the JavaScript syntax, including how to write statements, how to annotate statements, including single-line and multi-line annotations, and direct amount (data values directly appearing in programs) variable declaration, use of operators, and flow control statements. Among them, I have summarized the knowledge other than process control, so I will not talk too much about it.

The Process Control in JavaScript mainly involves the selection structure, loop structure, and exception handling, which has been exposed in Vb or involved in C ++, it is a well-known process.

Another important knowledge of this part is the application of built-in objects. The main built-in objects include the following:

1. Global object, which is a special object in ECMAScript and does not actually exist. Some of its methods are to encode or decode links, such as the encodeURI () and encodeURIComponent () encoding methods, which correspond to the decodeURI () and decodeURIComponent () decoding methods, this method can be used to convert the connection to reduce the risk of the website.

2. Array objects provide support for arrays. Some of these methods are similar to the data in and out of stacks in C ++. For example, you can add data using the push () method or delete pop () method.

3. Function objects. An important internal attribute is arguments and this. arguments can be used to save Function parameters. Global this refers to window, while private variable this points to private variables.

4. The regular expression object is used to implement regular expression matching of strings. It is usually declared in a literal form.


Of course, there are not only these methods in regular expressions, but also many other methods. Although their applications are different, when there are enough exercises, we can find that these methods have some similarities and are regular.

 

 

Summary:

At the beginning, I just took out some knowledge points and summarized them separately. Each knowledge point is independent. Later, after a period of study, we connected the relevant knowledge and put them together for comparison, classification, and summarization. However, before that, it is best to roughly view the relevant content and perform macro control, which will be of great help to your own learning direction.

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.