First, for a friend who is just getting started with node. js, be sure to understand some basic concepts:
This year I formally entered the society, found that they know the it aspects of knowledge, really just calf, the original people outside the mountains, there are mountains, but also need to continue efforts. Here are some of my self-learning experience, sent to share with you:
how the Web is developed:
1, c/S mode (client/server) such as: QQ, etc. to download the client software can be called C/s mode, it is a dedicated client program.
2, b/s mode (browser/server) such as: Web Games. The advantage of this is that you do not need to download the client app. The disadvantage is: the browser itself, because some browsers do not support.
The following is an analysis of the HTTPT and TCP/IP their respective operating modes and roles.
HTML5 is the standard for the system, HTTP is the request/response mode, and the record is not saved. Here is aan important working mode of HTTP:
1, the browser sends the request to the server,
2, the server received the request after parsing, and then respond to the browser to go.
First:the requested encapsulation:1> Request Line (HTTP version, URL, request method, request parameter)
2> Request Header (Request time, browser version, system version, cookie)
3> Blank line (one format)
4> Request message body (usually post method request parameter)
Second:encapsulation of the response:1> Status line (status code, status information)
2> response Header (the encoding the server sends back, the server time, the cookie)
3> Blank line (one format)
4> Response message body (all information sent back by the server)
Then learned the browser kernel related issues: 1, rendering mode (layout): There are WebKit and gecko
Google, opera and so on is the WebKit kernel.
Firefox uses the Gecko kernel.
The browser's working mode is often referred to as rendering mode. ECMAScript Full name: European Association of Computer manufacturers.
ECMA is a standardized organization.
The DOCTYPE types are divided into:
1. Rendering mode
2, quasi-standard mode
3. Standard mode
third, the relevant JS attributes:
1. setattribute can set the onclick event
2. instanceof is used to determine whether a type belongs to another type.
3, can use isNaN to compare the result is true
4. The escape () method returns an encoded string.
5, Attachevent () is specifically for Internet Explorer to block the flow of events.
These are the things I have mastered today. Progress a little every day, until a certain time, I believe that will improve a lot.
New get Started node. js must know the concept