简体   繁体   English

`console.dir`中的`dir`代表什么?

[英]What does the `dir` in `console.dir` 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 . 但有趣的是,我还没有找到说“DIR”实际意味着什么的文档。 "Directory" doesn't seem right. “目录”似乎不对。

This is not a "What's the difference between console.log() and console.dir() ?" 这不是“ console.log()console.dir()之间有什么区别?” question. 题。 It's simply, "What do the letters DIR actually stand for?" 简单地说,“DIR字母实际上代表什么?”

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". 目录是索引,列表,列表,注册,目录,记录,存档,库存等的同义词。其中一些词可能更适合此功能,例如“列表”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM