console
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>腾讯定位-jquery</title>
<meta content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
</head>
<body></body>
<script type="text/javascript">
var geolocation = new qq.maps.Geolocation("DTTBZ-DZGRJ-XG3FL-F5I7V-I22UQ-ZIFLZ","得到位置啊");
geolocation.getLocation(function(result){
console.log(result);
document.write(JSON.stringify(result));
},function(error){
console.log(error);
document.write(JSON.stringify(error));
});
</script>
</html>