使用node.js搭建一个简单服务器
废话不多说直接上代码:
var http = require("http");
var fs = require("fs");
var server = http.createServer(function(req, res) {
console.log("something has visited my first node serve");
let filepath;
let a;
if (req.url == "/") {
filepath = "./i
原创
2020-06-28 17:54:35 ·
172 阅读 ·
1 评论