A M*_*ain 1 javascript google-maps-api-3
这是我正在使用的代码:https://google-developers.appspot.com/maps/documentation/javascript/examples/places-autocomplete
当我在地理自动填充文本字段中选择地址时,我希望相应的邮政编码出现在另一个文本字段中,这可能吗?如果有人能帮助我找到解决方案,我会很高兴.
做了一些研究后我发现了这个:
var zip = address[address.length - 1].long_name = results[0].address_components;
Run Code Online (Sandbox Code Playgroud)
但我对如何使用此代码获取邮政编码感到困惑?
谢谢!
| 归档时间: |
|
| 查看次数: |
8139 次 |
| 最近记录: |