好吧,你可以绑定
.error()处理程序…
像这样,
$(".myimage").error(function(){ $(this).hide();});好吧,您已经可以使用load-event
$(".myimage").load(function() { $(this).show();});问题是如果禁用Javascript,图像将永远不会显示…

好吧,你可以绑定
.error()处理程序…
像这样,
$(".myimage").error(function(){ $(this).hide();});好吧,您已经可以使用load-event
$(".myimage").load(function() { $(this).show();});问题是如果禁用Javascript,图像将永远不会显示…