var http = require('http') var server = http.createServer(); server.on('request', function (req, res) { res.setHeader('Content-Type', 'text/plain;charset=utf8'); res.write('hello 世界'); res.end(); }) server.listen(8080, function () { console.log('serv…
本文转自:http://www.c-sharpcorner.com/UploadFile/g_arora/getting-started-with-node-js-tools-for-visual-studio/ Table of contents 1. Introduction 2. What Node.JS is 3. How to install Node.JS 4. Let's Start by Creation of a Simple App Pre-requites Create S…