我正在尝试使用GoogleAPI V3制作一个网站,以显示您当前的位置和附近的餐馆或咖啡馆。我在谷歌的教程中尝试了这个代码,但是我不能得到这个api可以显示我在地图上的当前位置。<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?();
var service = new google.
/js?key=YOUR_API_KEY&libraries=places&callback=initAutocomplete"但我有个错误./src/public/form/lib-component/locationInput.js
Line 10:24: 'google' is not defined no-u