2013-02-08 2 views

답변

3
$('img').error(function(){ 
    //... 
}); 

Docs

를 문서의 예 :

<img alt="Book" id="book" /> 

$('#book') 
    .error(function() { 
    alert('Handler for .error() called.') 
    }) 
    .attr("src", "missing.png"); 
관련 문제