console.countReset([label])


  • label <string> 计数器的显示标签。默认值:'default'

    ¥label <string> The display label for the counter. Default: 'default'.

重置特定于 label 的内部计数器。

¥Resets the internal counter specific to label.

> console.count('abc');
abc: 1
undefined
> console.countReset('abc');
undefined
> console.count('abc');
abc: 1
undefined
>