用npm下载个http-server:
cnpm install http-server -g
-g表示全局支持
到web模块的resources目录下,在cmd命令行执行:
http-server -P http://192.168.252.114:8100 -p 9000 .
其中ip端口是后端服务的ip端口。
浏览器打开http://localhost:9000/index.html就行了,一定要加/index.html
用npm下载个http-server:
cnpm install http-server -g
-g表示全局支持
到web模块的resources目录下,在cmd命令行执行:
http-server -P http://192.168.252.114:8100 -p 9000 .
其中ip端口是后端服务的ip端口。
浏览器打开http://localhost:9000/index.html就行了,一定要加/index.html