javascript - What does the `dir` in `console.dir` stand for? - Stack Overflow

I get what it does, and use it all the time. But funnily enough, I've yet to find documentation th

I get what it does, and use it all the time. But funnily enough, I've yet to find documentation that says what "DIR" actually means. "Directory" doesn't seem right.

This is not a "What's the difference between console.log() and console.dir()?" question. It's simply, "What do the letters DIR actually stand for?"

I get what it does, and use it all the time. But funnily enough, I've yet to find documentation that says what "DIR" actually means. "Directory" doesn't seem right.

This is not a "What's the difference between console.log() and console.dir()?" question. It's simply, "What do the letters DIR actually stand for?"

Share Improve this question edited Jun 1, 2016 at 13:56 RobertAKARobin asked May 31, 2016 at 21:31 RobertAKARobinRobertAKARobin 4,2844 gold badges29 silver badges47 bronze badges 7
  • Do not use it all the time. It is non-standard. – BoltKey Commented May 31, 2016 at 21:33
  • 1 Don't think "directory" as in "folder", think "directory" as in "a listing". – Mr. Llama Commented May 31, 2016 at 21:34
  • 1 I think it just means "Directory". Directory is a synonym for index, list, listing, register, catalogue, record, archive, inventory etc. Some of those words might have been a better fit for this function though. – HaukurHaf Commented May 31, 2016 at 21:35
  • 4 This Q&A helps a little. Hard to saw what the designer intended, but it seems roughly like a "directory" of attributes of the item being displayed. As others have noted, we in the puter field have gotten used to a narrow definition of "directory" but it really is a more general term. – lurker Commented May 31, 2016 at 21:35
  • @BoltKey Don't worry, only for debugging. – RobertAKARobin Commented May 31, 2016 at 22:55
 |  Show 2 more ments

1 Answer 1

Reset to default 9

It just means "Directory". Directory is a synonym for index, list, listing, register, catalogue, record, archive, inventory etc. Some of those words might have been a better fit for this function though, like "listing".

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744114461a4559105.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信