express列出目录
var http = require('http') var serveIndex = require('serve-index'); var express = require('express'); var app = express(); app.use(express.static('./')); app.use(serveIndex('./')); var server = http.createServer(app); server.listen(80, '0.0.0.0', () => { console.log("server start ok..."); });