> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# console: countReset() method

APISummary
`countReset` 方法用于重置 count() 方法的计数。

## 语法

```ts
countReset(label: string?): undefined;
```

### 参数

#### label

字符串。如果提供，则重置指定标签的计数，否则重置 "default" 标签的计数。

### 返回值

无（`undefined`）。

## 兼容性

**Compatibility Table**

**Query:** `lynx-api.global.console.countReset`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/global/console/countReset.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| countReset | Yes (3.2) | Yes (3.4) | Yes (3.2) | Yes (3.5) | Yes (3.5) | Yes |

**`countReset`**

reset count

