3.使用 express 查看视图(参见 2.EJS 文件......在此之前)
app.get("/",function(req,res){
response.render("index",{ //render the index when root(/) is requested
message:"rendered view with ejs"
});
});
app.get("/",function(req,res){
response.render("index",{ //render the index when root(/) is requested
message:"rendered view with ejs"
});
});