console
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>腾讯定位-ng</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://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js">
</script>
</head>
<body ng-app="myApp" ng-controller="getIPControl">{{loaction}}</body>
<script type="text/javascript">
var app = angular.module("myApp", []);
app.controller("getIPControl",function($scope,$http){
$scope.loaction;
QQmap = function(res){
console.log(res);
$scope.loaction = res;
};
$http.jsonp("https://apis.map.qq.com/ws/location/v1/ip?jsonp=QQmap&key=DTTBZ-DZGRJ-XG3FL-F5I7V-I22UQ-ZIFLZ&output=jsonp");
});
</script>
</html>