npm install http-server -g
使用方式:
cd D:\Folder
http-server
或者:
http-server D:\Folder
进阶用法:
http-server -a localhost -p 80
--cors to send Access-Control-Allow-Origin:* along with the response headers (ie when serving a json file)
npm install http-server -g
cd D:\Folder
http-server
http-server D:\Folder
http-server -a localhost -p 80
--cors to send Access-Control-Allow-Origin:* along with the response headers (ie when serving a json file)