<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" ></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script>
function getXYbyIP() { 
var url="https://api.map.baidu.com/location/ip?ak=HQi0eHpVOLlRuIFlsTZNGlYvqLO56un3&coor=bd09ll";
$.ajax({
    url:url,
    type: 'POST', 
    dataType: 'JSONP',
    async: false, 
    cache: true, 
    success: function (data) { 
        console.log(data)
       
    }, 
    error: function (data) { 
    } 
 }); 
}
getXYbyIP();
</script>
</head>
<body>
</body>
</html>

  

相关文章:

  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2021-12-04
  • 2022-12-23
  • 2021-12-06
  • 2022-02-06
  • 2022-12-23
相关资源
相似解决方案