enter link description here
然后,在图像标签上附加了error()事件处理程序。当执行时图片无法加载或src属性损坏。
他的事件处理程序为error()方法用我们选择的另一个图像替换不存在的图像。就我们而言用我们创建的图像替换它,并说无法加载图像。enter link description here