标签:
例子
var express = require(‘express‘); var app = express(); app.use(‘/‘, express.static(__dirname + ‘/public‘)); app.listen(3000, function() { console.log(‘listening‘)});
目录结构
. ├── public │ ├── a.html │ ├── b.html │ └── c.html └── server.js
标签:
原文地址:http://www.cnblogs.com/xxcf/p/5407449.html