标签: javascript jquery asp.net html web
有没有办法知道某些图片无法在jquery / javascript中加载到网页中。
答案 0 :(得分:5)
使用: .error()
$('img').error(function() { alert('Failed to load the image with src: ' + $(this).attr('src')); });