一、获取当前地址位置

  1. https://lbs.qq.com/service/webService/webServiceGuide/webServiceIp
  1. https://apis.map.qq.com/ws/location/v1/ip?key=RZ3BZ-ESIKD-NDE4H-PPWND-KJBZ2-SXB36
  1. let url = https://apis.map.qq.com/ws/location/v1/ip?key=RZ3BZ-ESIKD-NDE4H-PPWND-KJBZ2-SXB36&output=jsonp
  2. $.ajax({
  3. url,
  4. dataType:"jsonp",
  5. success:res=>{
  6. console.log(res);
  7. }
  8. })