为什么在 Visual Studio Code 中运行代码时没有显示输出

问题描述 投票:0回答:2

当我在 VS Code 中单击“运行代码”时,没有任何反应。没有显示任何输出,甚至没有任何地方显示错误。

enter image description here

visual-studio-code output
2个回答
1
投票

首先,您必须保存文件。截图里好像不是这样的。


0
投票

将文件名更改为 .html 对我有用,然后切换回 .js 文件后,它对我有用

© www.soinside.com 2019 - 2024. All rights reserved.