1.全局安装serve: npm install -g serve2.找到你想用Http请求的文件目录3.在目录下打开cmd4.启动命令 serve -p 80805.直接访问localhose:8080即可访问到本地文件