快递有什么意见?
我看到这行代码
expressapp.set('views', __dirname + '/views')
我控制台login的价值,这里是结果:
/卷/工作区/地方/的NodeJS / ABC /意见
但我找不到在项目文件夹中的意见文件夹我不明白什么是甚至在看快递文档网站后:
A directory or an array of directories for the application's views. If an array, the views are looked up in the order they occur in the array.
什么是应用程序的意见?
快速查看里面的文件夹/视图和
您可以使用方法set()重新定义express的默认设置
app.set('views', __dirname + '/yourViewDirectory');