1.查询地址
搜狐IP地址查询接口(IP):http://pv.sohu.com/cityjson
1616 IP地址查询接口(IP+地址):http://w.1616.net/chaxun/iptolocal.php
126(地址): http://ip.ws.126.net/ipquery
2.使用
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>//ie指定编码,默认是gbk
<script>console.log(returnCitySN["cip"]);</script>
<script src="http://w.1616.net/chaxun/iptolocal.php"></script>
<script>console.log(WData)</script>
<script src="http://ip.ws.126.net/ipquery"></script>
<script>console.log(lo);console.log(lc);</script>
时间: 2024-10-27 21:55:10