最简单node.js 服务器 都响应123
const http = require('http')
http.createServer(function (request, response) {
console.log('request come', request.url)
response.end('123')//响应内容
}).listen(8888)//监听端口
console.log('server listening on 8888')
最简单node.js 服务器 都响应123
const http = require('http')
http.createServer(function (request, response) {
console.log('request come', request.url)
response.end('123')//响应内容
}).listen(8888)//监听端口
console.log('server listening on 8888')