Learning nodejs-01

Source: Internet
Author: User

Nodejs is a server platform that parses JavaScript through the V8 engine, not the JS framework. V8 is open-source JS engine for Google, Chrome is used by him, according to the introduction of Daniel, V8 directly to the JS compiled into machine code, rather than script interpretation of execution, so the speed is very fast.

After Nodejs I was called node, and I wrote it in C + +. Based on the event-driven, non-blocking IO model, which is asynchronous operation, lightweight and easy to get started, here I began to show the example of the official website side, and then slowly study. I use the tool is webstrome, personally feel with him to write code is a kind of enjoyment ah.

Below is the development environment that I study later


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/27/9B/wKioL1NzY6vBbPuBAANC1L90i0M926.jpg "title=" Qq20140514203155.png "alt=" Wkiol1nzy6vbbpubaanc1l90i0m926.jpg "/>

Code is directly from the http://nodejs.org/official website CP down, in the browser open http://127.0.0.1:1337/, you can see the results

This article is from the "Sky Sea Wide" blog, please be sure to keep this source http://ether007.blog.51cto.com/8912105/1411253

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.