nodejs express的部分修改
express 配置中
var viewsRoot = path.join(__dirname, 'views');
app.set('view engine', 'html');
app.set('views', viewsRoot);
app.register('.html', require('ejs'));
global.App.get('/',function(request,response){
var method = request.method.toLowerCase();
if(method == 'get'){
response.render('login/login.html',{error:"fdfuck"});
return;
}
});