Chrome 控制台日志中的蓝色小圆圈是什么?
What is the small blue circle in the Chrome console log?
我正在使用 console.log
.
将动态 JavaScript 代码记录到我的 Chrome 控制台
有时我会在一行中看到一个蓝色的小圆圈,里面有一个数字。
有人知道这是什么意思吗?
重复输出的次数,也称为日志堆叠。
这叫做"message stacking"。来自 Google Developers:
Message stacking
If a message is consecutively repeated, rather than printing out each instance of the message on a new line, the Console "stacks" the messages and shows a number in the left margin instead. The number indicates how many times the message has repeated.
可以通过在常规设置中为控制台启用 "Show timestamps" 来关闭它。
我正在使用 console.log
.
有时我会在一行中看到一个蓝色的小圆圈,里面有一个数字。
有人知道这是什么意思吗?
重复输出的次数,也称为日志堆叠。
这叫做"message stacking"。来自 Google Developers:
Message stacking
If a message is consecutively repeated, rather than printing out each instance of the message on a new line, the Console "stacks" the messages and shows a number in the left margin instead. The number indicates how many times the message has repeated.
可以通过在常规设置中为控制台启用 "Show timestamps" 来关闭它。