var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(80, "127.0.0.1"); node.js 是Google V8引擎的封装,主要做http服务端 特点:事件驱动(异步) 单进程、单线程 C++开发 LinkedIn 移动版后台基于node.js搭建 淘宝一个Mysql 中间件 微软的云服务支持node.js 缺点:一直在变、不稳定、缺少第三方控制台可以直接交互 下载地址:http://nodejs.org/download/ 最新版本:v0.10.24
Node.js 经典helloworld 学习笔记
最新推荐文章于 2025-02-14 16:53:27 发布