摘要:
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'; 阅读全文