有谁知道我怎么做到这一点?提前致谢.
var imgurL = 'http://www.gravatar.com/avatar/f77ef279d6b33bc09ce5422049dd9e37?s=32&d=identicon&r=PG'; var img = $('<img src="'+imgurL+'"/>').load(function(){ console.log(this.width + ' x ' + this.height); });