Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use image component binderror in WeChat Mini Programs

Shulou Source: shulou.com Published: 2022-05-31 21:50:11 09月21日 Update

This article mainly introduces the relevant knowledge of "how to use the image component binderror in WeChat Mini Programs". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use the image component binderror in WeChat Mini Programs" can help you solve the problem.

WeChat Mini Programs image component binderror usage example (corresponding to onerror in html and js)

Official document

BinderrorHandleEvent event name published to AppService when an error occurs, event object event.detail = {errMsg: 'something wrong'}

In WeChat Mini Programs's development, we use a list to contain pictures, and if the picture link is incorrect, then we should provide it with a default friendly URL address. Using the onerror event in html and js is fine

Tags: Events programs components objects data pictures data sources knowledge files industries links errors differences utility subscript examples content address official utility Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL Shulou Technology Docker Huawei