引入jquery.js  

已过时。

  1. $.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js',function(){  
  2.   alert(remote_ip_info.country);//国家  
  3.   alert(remote_ip_info.province);//省份  
  4.   alert(remote_ip_info.city);//城市  
  5. });  
posted on 2018-02-28 11:37  UncleSan  阅读(4798)  评论(0编辑  收藏  举报