我的代码如下:
<html>
<head>
<script type="text/javascript"
src="
http://www.google.com/jsapi?key=key&sensor=false&hl=zh-CN"></
script>
<script type="text/javascript">
google.load("maps", "2.x", {"language" : "zh-CN"});
function initialize() {
var city=google.loader.ClientLocation.address.city;
document.getElementById("map").innerHTML=city;
}
google.setOnLoadCallback(initialize);
</script>
</head>
<body>
<div id="map" style="width: 200px; height: 200px"></div>
<div id="searchcontrol"></div>
</body>
</html>
当时返回值是英文的城市名,如何才能让city的返回值变成中文的!谢谢!