$.ajax({
url : picSrc,
async : false,
type : 'HEAD',
error : function() {
picSrc = "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png";
}, success : function() {

}
});


img.error(function() {
$(this).attr("src", "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png");
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-02-03
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案