- va">
- <script>
- var ip='114.114.114.114';
- $.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip='+ip, function(_result){
- alert(_result);
- if (remote_ip_info.ret == '1'){
- alert('IP 详细信息:IP:'+ip+'<BR>国家:'+remote_ip_info.country+'<BR>省份:'+remote_ip_info.province+'<BR>城市:'+remote_ip_info.city+'<BR>区:'+remote_ip_info.district+'<BR>ISP:'+remote_ip_info.isp+'<BR>类型:'+remote_ip_info.type+'<BR>其他:'+remote_ip_info.desc);
- } else {
- alert('错误', '没有找到匹配的 IP 地址信息!');
- }
- });
- </script>
- //该片段来自于http://www.codesnippet.cn/detail/1912201411352.html
来源: http://www.codesnippet.cn/detail/1912201411352.html