主题
在想当作服务器得文件夹下cmd
安装
npm i -g http-server
运行
http-server
若要禁用缓存,使用如下命令运行
http-server -c-l
运行后按生成地址访问即可
设置端口号方法
http-server . -p 8000