我正在使用Firebug,并且有一些声明:
console.log("...");
Run Code Online (Sandbox Code Playgroud)
在我的页面中.在IE8(也可能是早期版本)中,我收到脚本错误,说"控制台"未定义.我试着把它放在我的页面顶部:
<script type="text/javascript">
if (!console) console = {log: function() {}};
</script>
Run Code Online (Sandbox Code Playgroud)
我仍然得到错误.有什么办法摆脱错误?
javascript internet-explorer internet-explorer-8 ie-developer-tools
根据这篇文章它是在测试版,但它不是在发布?
在window.console.log
Internet Explorer 9中定义了哪些情况?
即使window.console.log
被定义,window.console.log.apply
并且window.console.log.call
是不确定的.为什么是这样?
[IE8的相关问题:IE8 中的console.log发生了什么变化?]