JADE模板:http://jumplink.github.io/jade2html2jade/ HTML转JADE,跟imooc上一步步来就搞定了
直接加载HTML静态资源:
var express = require('express');
var path = require('path');
var port = 3000;
var app = express(); app.use(express.static(path.join(__dirname, 'public')));
app.set('views','./views');
app.set('view engine','jade');
app.listen(port); console.log("1"); app.get('/',function (req,res) {
res.sendFile('index.html');
});
http://www.cnblogs.com/tugenhua0707/p/5444722.html
http://www.expressjs.com.cn/4x/api.html