Home > Web Front-end > JS Tutorial > Javascript core reading: language core_basic knowledge

Javascript core reading: language core_basic knowledge

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:16:25
Original
1091 people have browsed it

Before reading this book, I would like to thank the Taobao technical team for translating this JavaScript core, and thank Flanagan for writing this book. Thank you for your selfless sharing, and I only dedicate this note to your hard work.

1: JavaScript language core

After this chapter, we will mainly focus on the basics of javascript. In Chapter 2, we explain JavaScript comments, semicolons and unicode character sets; Chapter 3 will be more interesting, mainly explaining JavaScript variables and assignments

Here are some example codes illustrating the key points of the first two chapters.

Copy code The code is as follows:


Hello

The following client-side javascript uses events, which gives a very important event: the "load" event registers an event handler Chenxing. A colleague also showed a more advanced method of registering a "click" event handler

Copy code The code is as follows:


In Chapters 15-17, it describes how to use JavaScript to control the content , style and behavior (event handling) of web pages. The API discussed in this chapter is somewhat complicated and has poor browser compatibility so far. , it is for this reason that many JavaScript programmers choose to use "libraries" or "frameworks" to simplify their coding work. The most popular one is jQuery. Chapter 19 introduces the jQuery library

Copy code The code is as follows:

function debug(msg) {
              var log = $("#debuglog");
                            if (log.length == 0) {
Log = $("

debuglog

");
Log.appendTo(document.body);
                }
document.write(log)
Log.append($("
").text(msg));
            };

The four chapters in the second part we have mentioned so far all focus on web pages. The subsequent four chapters will focus on stores and web applications. These chapters do not discuss how to write control content. Styles and Thrive scripts use a web browser to render documents; instead, it explains how to use the web browser as an application platform. It also describes the APIs used to support more sophisticated client-side web applications and modern browsers.

Chapter 18 explains how to use javascript to initiate http requests.

Chapter 20 describes the data storage mechanism and session state maintenance of client applications, Chapter 21 covers the new generation of application API/network storage graphics driven by HTML5, and what support these are based on Browser development of new APIs. Zhejiang is the most exciting time for you as a JavaScript programmer. The last 4 chapters don't have much sample code. The following examples use these new APIs.

Related labels:
Previous article:Javascript core reading lexical structure_basic knowledge Next article:Method to transfer value between JavaScript component focus and in-page anchor point_javascript skills
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template