1. For a friend who is just getting started with node.js, you must understand some basic concepts:
After I officially entered society this year, I found that the IT knowledge I knew was really just awesome. It turns out that there are people outside the people and mountains outside the mountains, so I still need to continue working hard. Here are some of my self-learning experiences, I will share them with you:
The development principle of the web:
1. C/S mode (client/server) For example: QQ, WeChat, etc., the software that needs to download the client first can be called the 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 analyzing the working modes and functions of http and Tcp/ip in turn.
HTML5 is the standard of W3C, HTTP is request/response mode, and does not save records. Here is an important working mode of HTTP:
1. First, the browser sends the request to the server.
2. After receiving the request, the server parses and then responds to the browser.
First: The encapsulation of the request: 1> Request line (http version, url, request method, request parameters)
2> Request header (request time, browser version, system version, cookie)
3> Blank lines (a format)
4> Request message body (usually post-request parameters)
Second: Response encapsulation: 1> Status line (status code, status information)
2> Response header (encoding sent back by the server, server time, cookies)
3> Blank lines (a format)
4> Response message body (all messages sent back by the server)
Then I learned about the browser kernel related issues: 1. Rendering mode (layout): There are webkit and gecko
Google, Opera, etc. use the webkit kernel.
Firefox uses the Gecko kernel.
The working mode of the browser is often called the rendering mode. ECMAscript full name: European Computer Manufacturers Association.
ECMA is a standardized organization.
The doctype types are divided into:
1. Rendering mode
2. Quasi-standard mode
3. Standard mode
3. Properties in related js:
1. SetAttribute can set the onclick event
2. instanceof is used to determine whether one type belongs to another type.
3. You can use isNaN to compare the results to true
4. The escape() method returns an encoded string.
5. attachEvent() is specifically designed to block event flow in IE browser.
This is what I have today. Make a little progress every day, and after a certain period of time, I believe you will make a lot of progress.
The above concepts that must be known for the new entry node.js (must-read article) are all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.