Sag*_*gar 1 html javascript asp.net jquery web
有没有办法知道某些图像无法在jquery/javascript中加载到网页中.
使用:.error()
$('img').error(function() {
alert('Failed to load the image with src: ' + $(this).attr('src'));
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
310 次 |
| 最近记录: |