2019独角兽企业重金招聘Python工程师标准>>>
1.简介
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
2.官方网站
http://nodejs.org/ http://www.nodeclipse.org/ (eclipse plugin)
3.下载
http://nodejs.org/download/ 当前的版本是v0.10.0
node.js提供了windows环境和POSIX环境下的版本。
4.安装
对于windows环境,下载对应的版本,双击即可,node.js会默认安装在C:\Program Files\nodejs目录
安装后该目录如:
5.node.js的helloworld
在windows任意目录下,新建一个js文件,如hello.js
内容为:console.log('hello world');
打开命令行,切换到hello.js所在目录,输入:node hello.js
结果为:hello world
undefined