第一次获取
<-- index.html --><script src="/cityjson?ie=utf-8"></script><script type="text/javascript">window.localStorage.setItem('IP', returnCitySN["cip"])</script>
这种获取方式基本上没有问题,后续发现在电脑开启代理的情况下,会403,获取不到ip
后续使用另一种,从freegeoip 取 ip,请求/?format=json这个地址,返回ip只返回IP