views 设置报错求帮助。
nodejs吧
全部回复
仅看楼主
level 1
DIO的21
楼主
app.set('views', path.join(__dirname, 'views'));
发生未经处理的异常: ErrorReferenceError: path is not defined
2017年05月05日 10点05分
1
level 7
TerminationO0
path引入了么? 不引入这么写也是可以的:__dirname+'views'
2017年05月06日 13点05分
2
1