node 起个本地服务文件,解决跨域

安装命令:npm install -g anywhere

使用:在要启动静态服务的目录下执行

anywhere 端口号

例如:anywhere 8888