2013-11-09 56 views

回答

0
var express = require('express'), 
    app = express(); 

app.use(app.router); //<------------this way 
app.use(express.static(__dirname + '/static')); 

app.get('/', function(req, res, next) { 
    //actions 
    //send index 
    next(); 
}); 

app.listen(80); 
相關問題