摘要: 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'; 阅读全文
posted @ 2012-02-29 19:07 Arliang 阅读(178) 评论(0) 推荐(0) 编辑