简体   繁体   English

在console.log消息下方打印的数字是什么意思?

[英]What's the meaning of the numbers printed below the message of console.log?

I'm doing some testing in chrome debugger tool, I find some strange numbers are printed below the texts output by console.log: 我在chrome调试器工具中进行了一些测试,发现console.log输出的文本下方印有一些奇怪的数字: 在此处输入图片说明

I didn't log in the console, why are they there? 我没有登录控制台,为什么它们在那里? what are these numbers? 这些数字是多少? what does it mean? 这是什么意思?

The Chrome console logs the value of the last expression executed. Chrome控制台记录上一次执行的表达式的值。 In the first example above, the last line, i++; 在上面的第一个示例中,最后一行是i++; logs 9 . 日志9 In the second example, i+=1; 在第二个示例中, i+=1; logs 10 . 日志10

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

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