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.