我正在建立一个使用Google地图的网站。 当页面在IE 8中加载时,我收到以下错误。
网页错误详情
用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 5.1; Trident / 4.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; Release = ARP) 时间戳:星期二,2014年4月8日05:08:34 UTC
消息:脚本错误 行:0 字符:0 代码:0 URI:https://maps.gstatic.com/intl/en_AU/mapfiles/embed/16/6/init_embed.js
消息:脚本错误 行:0 字符:0 代码:0 URI:https://maps.gstatic.com/cat_js/intl/en_au/mapfiles/api-3/16/6/%7Bmain,search%7D.js
尝试显示地图的HTML如下所示。
<div class="map">
<iframe width="700" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com.au/maps?f=q&source=s_q&hl=en&geocode=&q=34+Wilson+St,+Brighton,+Victoria&aq=&sll=-37.911623,144.999827&sspn=0.000435,0.000984&t=m&ie=UTF8&hq=&hnear=34+Wilson+St,+Brighton+Victoria+3186&ll=-37.911606,144.999591&spn=0.003466,0.007875&z=14&output=embed"></iframe><br /><small><a href="https://maps.google.com.au/maps?f=q&source=embed&hl=en&geocode=&q=34+Wilson+St,+Brighton,+Victoria&aq=&sll=-37.911623,144.999827&sspn=0.000435,0.000984&t=m&ie=UTF8&hq=&hnear=34+Wilson+St,+Brighton+Victoria+3186&ll=-37.911606,144.999591&spn=0.003466,0.007875&z=14" style="color:#0000FF;text-align:left">View Larger Map</a></small>
</div>
不确定导致这种情况,因为它似乎适用于我尝试过的所有其他浏览器类型(Chrome,Firefox,Safari)。