【发布时间】:2013-03-08 11:44:35
【问题描述】:
在 Firefox/Chrome/others 中,typeof console.log 报告“功能”。在IE9中,(假设开发者控制台是打开的,因此定义了window.console属性),如果你在开发者控制台中显示变量console.log,显示
function(...) {
[native code]
}
但它会将 typeof console.log 报告为“对象”。该标准规定,功能应该被报告为“功能”。有人知道为什么会这样吗?
【问题讨论】:
标签: internet-explorer-9 ie-developer-tools console.log