IP地址查詢接口及調用方法


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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM