一、前端文件(html文件)以服务器模式打开
1.VScode安装Live Server 插件
2.打开
二、Live Server 插件配置默认打开浏览器为chrome
1.点击插件旁白的配置按钮
2.在展开也选择“配置扩展信息”
3.设置live server默认打开浏览器为“chrome”
此时,选中.html文件,右键选择"open with Live Server",可以成功的在vscode中以服务器方式打开.html文件,eg:
一、前端文件(html文件)以服务器模式打开
1.VScode安装Live Server 插件
2.打开
二、Live Server 插件配置默认打开浏览器为chrome
1.点击插件旁白的配置按钮
2.在展开也选择“配置扩展信息”
3.设置live server默认打开浏览器为“chrome”
此时,选中.html文件,右键选择"open with Live Server",可以成功的在vscode中以服务器方式打开.html文件,eg:
发布评论