📅  最后修改于: 2022-03-11 14:57:00.610000             🧑  作者: Mango
app.set('views', path.join(__dirname, 'views'));
app.locals.basedir = app.get('views');
// now you can enter the path after views directory directly