新浪的ip地址库进行定位:
$.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js',function(){
alert(remote_ip_info.country);//国家
alert(remote_ip_info.province);//省份
alert(remote_ip_info.city);//城市
});
淘宝的ip地址库进行定位:
http://ip.taobao.com/service/getIpInfo.php?ip=211.141.201.151