Skip to main content
Version: Next

Image

The image object.

Reference

Methods

PropertyTypeDescription
heightnumberThe actual height of the image.
onerror(...args: any[]) => anyThe callback function triggered after an error occurred during image loading.
onload(...args: any[]) => anyThe callback function triggered after the image is loaded.
srcstringThe image URL.
widthnumberThe actual width of the image.

API Support

APIWeChat Mini-ProgramH5React Native
Image✔️