You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
214 B

6 months ago
var express = require('express');
var app = express();
app.use(express.static('./htdocs'));
app.listen(3000, res => {
console.log('服务器启动成功访问地址http://127.0.0.1:3000/文件名');
});