server.js

const http = require('http');

http.createServer(function(req,res){
    console.log('req come', req.url);
    res.end('123');
}).listen(8888);

console.log('server listening on 8888');
console.log('http://localhost:8888/')

用node创建一个最简单的服务 

相关文章:

  • 2021-06-03
  • 2022-12-23
  • 2021-11-28
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-12
  • 2021-07-15
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2021-11-27
相关资源
相似解决方案