js获取用户访问地址 ip id

index.html

  <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
   需要使用的地方
returnCitySN['cname']
console.log(returnCitySN['cip']);
console.log(returnCitySN);
本文作者:___mouM
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角【推荐】一下。
版权说明:本文版权归作者和博客园共有,欢迎转载。但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利.
原文地址:https://www.cnblogs.com/aknife/p/15578405.html