您的位置:首页 > 其它

IP地址查询接口及调用方法

2016-09-11 15:24 260 查看
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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: