在console.log消息下方打印的数字是什么意思? [英] What's the meaning of the numbers printed below the message of console.log?

查看:265
本文介绍了在console.log消息下方打印的数字是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在chrome调试器工具中进行一些测试,我发现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:

我没有登录控制台,为什么它们在那里?这些数字是多少?是什么意思?

I didn't log in the console, why are they there? what are these numbers? what does it mean?

推荐答案

Chrome控制台记录上一次执行的表达式的值.在上面的第一个示例中,最后一行i++;记录9.在第二个示例中,i+=1;记录10.

The Chrome console logs the value of the last expression executed. In the first example above, the last line, i++; logs 9. In the second example, i+=1; logs 10.

这篇关于在console.log消息下方打印的数字是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆