VSCode前端文件以服务器模式打开

第一种方式:

在终端中输入;

1.npm install http-server -g

2.hs      

第二种方式

VScode安装Live Server 插件

在文件中右击-open width live server.

 

 

原文地址:https://www.cnblogs.com/sunhuinaxixi/p/12872622.html