New entry node. js must know the concept of must read

  • 2021-07-09 07:14:40
  • OfStack

1. For a friend who has just started node. js, 1 must know some basic concepts:

After I officially entered the society this year, I found that what I knew about IT was really just a cow's hair. It turned out that there were people outside people and mountains outside mountains, so I still need to continue to work hard. Here are some of my self-learning experiences, which I send out and share with you:

The development principle of web:

1. C/S mode (client/server), such as QQ, WeChat and other software that needs to download the client first, can be called c/s mode, which has a special client program.

2. B/S mode (browser/server), such as web games. Its advantage is that there is no need to download client applications. The disadvantage is: the browser itself, because some browsers do not support it.

The following is an analysis of the working modes and functions of httpt and Tcp/ip in turn.

HTML5 is the standard for W3C, and HTTP is in request/response mode and does not save records. The following is an important working mode of an HTTP:

1. First, the browser sends a request to the server,

2. After receiving the request, the server parses it and responds to the browser.

1: Encapsulation of requests: 1 > Request line (http version, url, request mode, request parameter)

2 > Request header (request time, browser version, system version, cookie)

3 > Blank line (1 format)

4 > Request message body (usually post mode request parameter)

2: Encapsulation of response: 1 > Status line (status code, status information)

2 > Response header (code sent back by server, server time, cookie)

3 > Blank line (1 format)

4 > Response message body (all information sent back by the server)

Then I learned the related problems of browser kernel: 1. Rendering mode (layout): There are webkit and gecko

Google, opera, etc. use webkit kernel.

Firefox uses the Gecko kernel.

The working mode of a browser is often called rendering mode. ECMAscript Full name: European Computer Manufacturers Association.

ECMA is a standardization organization.

doctype types are divided into:

1. Rendering mode

2. Quasi-standard mode

3. Standard model

3. Attributes in the relevant js:

1. setAttribute can set onclick events

2. instanceof is used to judge whether one type belongs to another type.

3. isNaN can be used to compare the result to true

4. The escape () method returns an encoded string.

5. attachEvent () is specifically designed to block the flow of events in the IE browser.

This is what I have mastered today. Make progress at 1 point every day, and when it comes to 1 fixed time, I believe it will make a lot of progress.


Related articles: