img标签支持onerror事件,在装载文档或图像的过程中如果发生了错误,就会触发onerror事件。可以使用一张提示错误的图片代替显示不了的图片 <img src="uploadFiles/file/announcement/${pd.IMGURL}" width="100px" height="60px" id="jsb_czq_pic"onerror="this.src='uploadFiles/file/announcement/p8.png'"/>