js获取外网IP

2022-01-17 13:42:55 浏览数 (1)

js获取外网IP

代码语言:javascript复制
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script type="text/javascript">
  let Ip=returnCitySN['cip']
  localStorage.setItem('Ip', Ip)
</script>
复制
ip

0 人点赞