谷歌地图错误。 API? ReferenceError:无法找到变量:google

时间:2016-07-26 01:48:59

标签: google-maps

我遇到了网站的Google地图组件的一些问题。

据我所知,最近对地图的使用进行了更改,并生成了在网站上使用的API密钥。

地图在idex.html页面上显示正常,但显示错误.. ReferenceError:无法找到变量:google 在另外两页?

我真的对这些类型的东西不感兴趣,并感谢可能提供的任何支持。该网站正在maverickonthebay.com.au

上线

1 个答案:

答案 0 :(得分:0)

我查看了页面(url),

我想您需要从google-maps-api加载脚本代码中删除$(document).ready(function() { var currentColour = 0; // This variable is now shared by each function call setInterval(function() { var theColours = Array('#ffffff','#000000','#00ff00','#ff0000','#0000ff'); var theColour = theColours[Math.floor(currentColour++ % theColours.length)]; $('#branding').animate({backgroundColor: theColour}, 500); }, 1000); }); 属性。

因为代码是缩小的,很难检查什么是错误的以及原因。