Home >Web Front-end >JS Tutorial >Use the onerror event of the image to load the default image_javascript skills

Use the onerror event of the image to load the default image_javascript skills

PHP中文网
PHP中文网Original
2016-05-16 18:39:041087browse

Code to load the default image when the image does not exist

Load default image



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn