使用http-server开启本地服务器进行本地测试

需要node环境

npm install -g http-server
// 创建文件夹
mkdir test
// cd进入目录
cd test
// 命令行http-server开启http本地服务,默认端口8080
 http-server
View Code

 

posted @ 2020-07-23 10:46  renewload  阅读(518)  评论(0)    收藏  举报