liangziaha

腾讯ip定位:https://lbs.qq.com/service/webService/webServiceGuide/webServiceIp

申请一个腾讯地图key:https://lbs.qq.com/dev/console/key/manage

使用方法如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>test</title>
    <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
</head>
<body>
    
</body>
<script>
    $.ajax({
        type:\'get\',
        url:\'https://apis.map.qq.com/ws/location/v1/ip\',
        data:{
            key:\'NUMBZ-QW4RF-CLQJI-J5A77-XIRM3-26BWY\', //腾讯key(我的测试key)
            output:\'jsonp\',
        },
        dataType: \'jsonp\',
        success:function (res){
            console.log(res)
        }
    })
</script>
</html>

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-12-22
  • 2021-12-22
  • 2021-12-12
  • 2021-11-23
猜你喜欢
  • 2021-11-21
  • 2021-07-31
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案