javascript - Google map 无法在 Internet Explorer 中加载

标签 javascript internet-explorer google-maps-api-3 internet-explorer-9

Internet Explorer 未加载 map ,但如果您按 F12 并打开开发人员工具,然后单击刷新,它会加载 map 。

http://www.jaycodesign.co.nz/wp-content/uploads/demos/StreetView/

它应该通过下面的 jQuery 代码加载 map ,但事实并非如此。

    $(document).ready(function() {      
        console.log("doc ready");               
        load_map_and_street_view_from_address("12 Boston Rd, Boston");

        $('#change_street').click(function(){
            $('form').submit();
        });

    });

如何让 IE 加载 map ?

最佳答案

知道了

删除了console.log(“文档就绪”);

我发帖后就看到了这个

A JavaScript script only works on Internet Explorer when the Internet Explorer Developer Toolbar is visible

关于javascript - Google map 无法在 Internet Explorer 中加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14575436/

相关文章:

css - 在 IE8 中将文本旋转 270 度

javascript - Google Maps API v3 点击事件在 Ionic 模拟器或设备中不起作用

javascript - 如何将 ajax.abort() 传播到 Controller

css - 如何在 IE 8 及更早版本中显示溢出内容的垂直滚动条?

javascript - 为什么 onclick() 在按钮标签内不起作用?

visual-studio-2008 - 使用VS2008完成调试Web应用程序后,为什么Internet Explorer关闭?

javascript - 谷歌方向不起作用

javascript - Roads API 使用 GeoJSON 捕捉到道路

javascript - 使用 React 提交表单,无需状态

Javascript:速率限制,但超过限制后继续执行