title: Image
sidebar_label: Image
The image object.
Methods
| Property | Type | Description |
|---|---|---|
| height | number |
The actual height of the image. |
| onerror | (…args: any[]) => any |
The callback function triggered after an error occurred during image loading. |
| onload | (…args: any[]) => any |
The callback function triggered after the image is loaded. |
| src | string |
The image URL. |
| width | number |
The actual width of the image. |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| Image | ✔️ |
