作为前端开发搭建本地服务尤其重要,下边的方法三步完成服务器的搭建:
$ npm install http-server -g // 全局安装http-server
$ cd demo2 // 打开要共享的文件
$ http-server // 搭建服务

https://segmentfault.com/q/1010000003926981
作为前端开发搭建本地服务尤其重要,下边的方法三步完成服务器的搭建:
$ npm install http-server -g // 全局安装http-server
$ cd demo2 // 打开要共享的文件
$ http-server // 搭建服务
https://segmentfault.com/q/1010000003926981
本文标题:前端搭建本地服务器供局域网使用
本文链接:https://www.haomeiwen.com/subject/isyyottx.html
网友评论