Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用地理编码进行一个新项目,但现在我正在本地测试我的网站。如何注册本地 URL(例如:)[http://localhost/myWebApp]?或者只有当我的网站在虚拟主机服务上时我才会看到更改?
[http://localhost/myWebApp]
通过使用 javascript V3 api,您只需在脚本声明中输入 api 密钥。例子:
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=enteryourapikeyhere&sensor=false"></script>
您可以按照此处所需的步骤在您的页面中实施它:
谷歌地图 JavaScript API v3