---
name: "WebviewContext.reload"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "WebviewContext.reload - 重新加载 web-view 组件"
---

## WebviewContext.reload

> [VERSION] Base Library >= 2.21.8

### Description

Reload the web-view component

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | `WebviewCallbackOption` | Yes | Callback options |

### Return Value

None


### Referenced Types

##### `interface` WebviewCallbackOption

| Property | Type | Description |
| --- | --- | --- |
| `success` | `() => void` | Callback invoked on successful API call |
| `fail` | `() => void` | Callback on failure |
| `complete` | `() => void` | Callback on complete (success or failure) |


### Examples

#### Reload the page

```ts
const webviewCtx = ty.createWebviewContext('myWebview');
webviewCtx.reload({
  success() {
    console.log('Reloaded successfully');
  },
});
```
