1 var url = \'http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_=\'+Math.random(); 2 //http://chaxun.1616.net/s.php?type=ip&output=json 请求接口
3 $.getJSON(url, function(data){ alert(data.Ip); });
返回数据格式:
({"Ip":"111.111.111.111","Isp":"北京北京 电信ADSL","Browser":"Google Chrome 55.0.2883.87","OS":"Windows NT","QueryResult":1})