// 全局安装http-server
npm install http-server -g
// cd到某个文件夹下再执行以下命令
http-server -a 127.0.0.1 -p 7070 -o
参考资料:
http://yijiebuyi.com/blog/b0f6ddc56be457e13879a3ad105f561b.html
http://yijiebuyi.com/blog/359ff66c69934c178dfa8baa32427aef.html
// 全局安装http-server
npm install http-server -g
// cd到某个文件夹下再执行以下命令
http-server -a 127.0.0.1 -p 7070 -o
参考资料:
http://yijiebuyi.com/blog/b0f6ddc56be457e13879a3ad105f561b.html
http://yijiebuyi.com/blog/359ff66c69934c178dfa8baa32427aef.html