JavaScript Simple Introduction

Source: Internet
Author: User
Tags object model

The first one to learn about JavaScript is certainly his brief history, here, I do not repeat these, the repetition of the wheel makes no sense, but the basis, or to understand some, such as I study, is ecmascripe 5th edition. To understand the differences between the version, please own Baidu. The mainstream modern browsers support this version of the good, of course, is a modern browser. Forget hateful IE5 6 7, with others said, Microsoft has given up treatment, we should shout the slogan compatible all, but the heart is miserable.

JavaScript is the need to focus on understanding, ECMAScript, Document Object Model (DOM), browser object model (BOM), for the BOM and DOM, to do the author's eyes will be used, this is the basis of the Operation page. For DOM, you can think of it as a tree, every node, the branch and the treetops. Now that you have the structure, it is much easier to understand how to operate. If you want a deeper understanding, you need to understand the ECMAScript prototype first. The following will be carefully summed up. For DOM, this is the browser object. He provided us with a series of APIs for us to manipulate the browser. Rote memorization is the API provided by the DOM and BOM.

Use JavaScript, either on the page, in the "<script></script>" tab, or through the "<script type= ' text/javascript ' src= ' xxxxx.js ' Defer= ' defer ' ></script> ' the way of the external file, the JavaScript file is downloaded externally, introduced through SRC. Defer is deferred loading, other attributes are not introduced, and the search API itself. It is recommended to use an external introduction to achieve maintenance and scalability (two concepts that each development student should focus on).

This article is written here, there are wrong places, I hope you can correct me.


Related Article

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.