【发布时间】:2012-12-21 10:32:59
【问题描述】:
可能重复:
What’s the difference between console.dir and console.log?
我最近了解到console.dir() 的存在。
看了MDN之后,我并没有很清楚这和console.log的真正区别是什么。它们都显示相同的输出(但.dir 显示了一些属性),是这样吗?
调试/开发时应该使用哪个函数?
编辑:我刚刚发现了一个回答我想法的现有问题:What's the difference between console.dir and console.log?
【问题讨论】:
标签: javascript html debugging coding-style