1. 安装 http-server 模块
npm install http-server -g 全局安装
2.在需要的文件夹 启动
http-server 默认的端口是8080 可以使用 -p 参数指定一个端口号