VS Code在使用Live Server时显示目录结构而不是app.js文件

时间:2020-07-22 11:51:16

标签: javascript node.js express visual-studio-code

我正在研究node(Express)。 我正在获取目录结构而不是内容。此外,当我保存文件时,我的浏览器窗口也不会重新加载。我没有任何index.html文件,因为我不需要它。

P.S。我在stackoverflow上阅读了许多相关的答案,但所有这些都以某种方式涉及到index.html关系 This is the image of my directory structure

setContentView

app.js文件中的代码

0 个答案:

没有答案