img 标签的属性里面添加 οnerrοr="this.src='error友好图片'" 就可以了! 转载于:https://www.cnblogs.com/yuners/p/10634131.html