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);

 

posted @ 2021-11-19 17:31  ___mouM  阅读(253)  评论(0)    收藏  举报