简体   繁体   English

Chrome调试器中的Scope Local变量中的双冒号是什么意思?

[英]What does the double colon mean in Scope Local variables in Chrome's debugger?

See the screen dump fragment below. 请参阅下面的屏幕转储片段。 Notice that there are two colons between legend and Object (legend is a field of ptd). 请注意,图例和对象之间有两个冒号(legend是ptd的字段)。 What does the double colon mean? 双冒号是什么意思?

My problem is that if I test the value of ptd.legend, it is 'undefined'. 我的问题是,如果我测试ptd.legend的值,它是“未定义”的。 Which it shouldn't be... 不应该...

本地范围

It means that the property name is actually the string "legend:". 这意味着属性名称实际上是字符串“ legend:”。 You can tell by the syntax highlighting. 您可以通过语法高亮显示。

For example: 例如:

obj['legend:'] = 'value';

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

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