Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
如何让google.loader.ClientLocatio n.address.city的返回值变成中文的?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
我爱评  
View profile   Translate to Translated (View Original)
 More options Oct 28, 12:31 pm
From: 我爱评 <zhr...@gmail.com>
Date: Wed, 28 Oct 2009 09:31:13 -0700 (PDT)
Local: Wed, Oct 28 2009 12:31 pm
Subject: 如何让google.loader.ClientLocation.address. city的返回值变成中文的?
我的代码如下:
<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的返回值变成中文的!谢谢!

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fei Chen  
View profile   Translate to Translated (View Original)
 More options Nov 1, 10:48 pm
From: Fei Chen <phinix.c...@gmail.com>
Date: Mon, 2 Nov 2009 11:48:37 +0800
Local: Sun, Nov 1 2009 10:48 pm
Subject: Re: 如何让google.loader.ClientLocation.address. city的返回值变成中文的?

导入jsapi的时候把.com <http://xn--hwq826bbpclyx.com>改成.cn <http://xn--vnu.cn>应该可以

2009/10/29 我爱评 <zhr...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
郑荣国  
View profile   Translate to Translated (View Original)
 More options Nov 2, 9:21 am
From: 郑荣国 <zhr...@gmail.com>
Date: Mon, 2 Nov 2009 22:21:25 +0800
Local: Mon, Nov 2 2009 9:21 am
Subject: Re: 如何让google.loader.ClientLocation.address. city的返回值变成中文的?
    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jason  
View profile   Translate to Translated (View Original)
 More options Nov 3, 7:01 am
From: jason <hao...@gmail.com>
Date: Tue, 3 Nov 2009 04:01:20 -0800 (PST)
Local: Tues, Nov 3 2009 7:01 am
Subject: Re: 如何让google.loader.ClientLocation.address. city的返回值变成中文的?
这样写试试看
google.load("maps", "2.x", {"base_domain":
"ditu.google.cn" ,"language" : "zh-CN"});

On 10月29日, 上午12时31分, 我爱评 <zhr...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google