> 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.

# lynx: reload() static method

APISummary
刷新当前页面，就像点击刷新按钮一样。

## 语法

```ts
reload(value: object, callback: () => void): void;
```

### 参数

#### value

重新加载页面使用的新初始数据。

#### callback

重新加载页面以后触发的回调函数。

### 返回值

无（`undefined`）。

## 注意事项

1. `lynx.reload()` 方法不会触发前端 `DataProcessor` 函数；
2. `__globalProps`、`SystemInfo`、JS 全局变量会保持不变；
3. `lynx.reload()` 会触发当前所有前端组件的 `componentWillUnmount`/`onDetach` 回调；并重新创建新的前端自定义组件。

## 兼容性

**Compatibility Table**

**Query:** `lynx-api.lynx.reload`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| reload | Partial (2.7) | Partial (3.4) | Partial (2.7) | Yes (3.5) | Yes (3.5) | Partial |

**`reload`**

Reloads the current page, like the Refresh button.

**Specifications:**

- **Android — From 2.7:** Partial support; ReactLynx 3.0 is not supported.
- **HarmonyOS — From 3.4:** Partial support; ReactLynx 3.0 is not supported.
- **iOS — From 2.7:** Partial support; ReactLynx 3.0 is not supported.
- **Web — Supported (version unknown):** Partial support; Reloads the current lynx-view. The native data argument and completion callback are not implemented.

