var http= require(‘http‘);
var server= http.createServer(function(req,res){
res.writeHead(200,{"Content-type":"text/html;charset=UTF-8"});
res.end("<h2>我是标题</h2>")
});
server.listen(3000,"127.0.0.1");
标签:function nod content nodejs log text end class har
var http= require(‘http‘);
var server= http.createServer(function(req,res){
res.writeHead(200,{"Content-type":"text/html;charset=UTF-8"});
res.end("<h2>我是标题</h2>")
});
server.listen(3000,"127.0.0.1");
标签:function nod content nodejs log text end class har
原文地址:https://www.cnblogs.com/qq735675958/p/8366617.html