编辑下面的代码:【加编码】
<html> <body> <img src="/demo/image.gif" onerror="alert('The image could not be loaded.')"> <p>Here we refer to an image that does not exist, therefore the onerror event occurs.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂