纯html本地起服务

20 阅读1分钟

1. 全局安装npm install -g http-server

2. cd xx/xxx/xx

  1. http-server -p 1337 -a 10.100.23.111 --cors  // 1337: 端口号, 10.100.23.123: ip

4. 直接10.100.23.123:1337/index.html 访问