日期:2014-05-16 浏览次数:20515 次
var img=new Image();
img.src='http://a.hiphotos.baidu.com/image/w%3D2048/sign=d523f30d950a304e5222a7fae5f0a686/80cb39dbb6fd5266f82abb1da918972bd40736b1.jpg';
img.onload=function(){
alert(this.width+'
------解决方案--------------------
'+this.height);
};