阅读:14701 次 编辑日期:2015-10-19
<img src="images/showImg.jpg" onerror="this.onerror=null; this.src='images/default.jpg' />
$('img').error(function(){ $(this).attr('src',"default.jpg"); })