迅速搭建简易静态服务器

有时直接打开本地html文件会使一些web操作无法进行,需要运行一个本地服务器。

使用nodejs的

npm install http-server –g
http-server . -p 80

可以迅速地启动一个本地静态资源服务器

猜你喜欢

转载自www.cnblogs.com/trialley/p/10460891.html