我想将此代码提供给alert
具有透视地址的用户,但由于某种原因它没有执行。有人能指出我正确的方向吗?
谢谢!
<html>
<head>
<title>geoload</title>
<script type="text/javascript" src="http://www.mapquestapi.com/geocoding/v1/reverse?key=MY_DEV KEY GOES HERE=40.0755&lng=-76.329999&output=json&callback=renderGeocode"></script>
<script type="text/javascript">
function renderGeocode(response){
var location = response.results[0].locations[0];
alert(location.adminArea5 + ", " + location.adminArea4);
}
</script>
</head>
<body onload=(load"renderGeocode")></body>
</html>