$("img")
.error(function(){
$(this).hide();
})
.attr("src", "missing.png");
$("img")
.error(function(){
$(this).hide();
})
.attr("src", "missing.png");
本文标题:jQuery隐藏无法加载的图片,并用特定的图片代替
本文链接:https://www.haomeiwen.com/subject/hviztxtx.html
网友评论