node搭建静态express服务器
emer 发布于 2018-1-19 16:35 2753 次阅读
var express = require('express');
var app = express();
app.use(express.static('./'));
var server = app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
emer 发布于 2018-1-19 16:35 2753 次阅读
var express = require('express');
var app = express();
app.use(express.static('./'));
var server = app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});