img 标签有一个error 事件,通过它我们可以捕捉到异常,使用起来也很简单 ... addEventListener.error 不仅可以监听到图片的失败也可以监听到 css,js ...
確定! 回上一頁