maoxiaoke
4/19/2017 - 1:16 PM

From http://ipinfo.io/developers 获取ip地址(jQuery)

From http://ipinfo.io/developers 获取ip地址(jQuery)

{ "ip": "203.205.28.14", "hostname": "static.cmcti.vn", "city": "Ho Chi Minh City", "region": "Ho Chi Minh City", "country": "VN", "loc": "10.8142,106.6438", "org": "AS45903 CMC Telecom Infrastructure Company" }

$.getJSON('https://ipinfo.io', function(data){
  console.log(data);
})