app.get('/customer', function(req, res){ res.send('customer page'); }); ... 上面代码使用render方法,将message变量传入index模板,渲染成HTML网页。
確定! 回上一頁