安装环境


yarn global add live-server
npm install -g live-server


使用

1、进入目录

2、在终端下输入:live-server


注:live-server --port=80 表示使用本地80端口