
NodeJS
tina_tian1
行到水穷处,坐看云起时
展开
-
Node.js hello world
1. Node.js + angularJS on Windows https://github.com/tianxia1221/nodeAngularHelloWorld 2. Node.js + mySQL on Windows https://github.com/tianxia1221/nodeMysqlHelloWorld原创 2016-09-23 14:14:35 · 280 阅读 · 0 评论 -
NodeJS基本
1. 安装 (windows) https://nodejs.org/en/download/ check环境变量path是否包含C:\Program Files\nodejs\; 2.hello world helloworld.js: console.log("Hello World"); run :node helloworld.js output:原创 2016-09-22 14:48:01 · 258 阅读 · 0 评论 -
Nodejs https reqest by proxy(node通过代理进行https请求)
Code https_by_proxy.js var Http = require('http'); var Tls = require('tls'); var req = Http.request({ host: 'web-proxy.xxx.hp.com', port: 8080, method: 'CONNECT', path: 'www.baidu.c原创 2016-12-20 17:52:20 · 4240 阅读 · 0 评论 -
Nodejs http server "Hello world"
Code web-server.js var http = require("http"); var server = http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/html"}); //response.write("");原创 2016-12-20 16:52:49 · 999 阅读 · 0 评论