当我开始使用 OpenLayers 时,console.log 停止工作,并且我在 chrome 终端中不断收到此错误。
GET http://127.0.0.1/my/private/dir/undefined/firebug.html 404 (Not Found)
起初我没有意识到它是 OL,所以我卸载了 firebug lite 插件。然后我检查了 OL 源代码,发现它试图注入 firebug 的位置。
y=document.createElement("iframe");y.setAttribute("src",o+"/firebug.html");
除了修改源代码之外,有没有办法阻止 OL 这样做。此外,它正在覆盖 window.console