【文件属性】:
文件名称:Hello-World--Node.js:从Node.js开始
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-24 17:24:20
JavaScript
从Node.js开始
## Hello world-控制台
这个例子是尽可能简单的。 它将单词“ Hello World”打印到终端。
你好,世界
// Load the http module to create an http server.
var http = require ( 'http' ) ;
// Configure our HTTP server to respond with Hello World to all requests.
var server = http . createServer ( function ( request , response ) {
response . writeHead ( 200 , { "Content-Type" : "text/plain" } ) ;
response . end ( "Hello Worl
【文件预览】:
Hello-World--Node.js-master
----hello-world-router.js(290B)
----hello-world.js(482B)
----About_Nodejs.md(972B)
----README.md(1KB)
----hello-world-tcp.js(619B)