var i = new Image;
i.onload = function(){
  console.log('success,width:%i,height:%i', this.width, this.height);
}
i.onerror = function(){
  console.log('fail');
}
i.src = 'http://m327.mail.qq.com/zh_CN/htmledition/images/logo/logo_min_0.gif';
//i.src = 'error';

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-01-19
  • 2022-12-23
  • 2021-12-14
  • 2021-11-23
猜你喜欢
  • 2021-09-28
  • 2021-10-04
  • 2021-10-27
  • 2022-01-03
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案