在使用ajax调用之后,我得到了google地图的这个错误消息。ReferenceError: google is not defined
我所做的是将链接"<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
我正在使用谷歌地图API显示的最后一个位置,一个表格是提交到我的网站。因此,我从php文件中提取lon和lat值作为变量,但我需要脚本每5秒刷新一次,以便映射标记更新而不需要重新加载页面。下面是google脚本: var myLatlng = new google.maps.LatLng<?('map_canvas'), mapOptions