- // Insert preloaded image after it finishes loading
- $('<img />')
- .attr('src', 'imageURL.jpg')
- .load(function(){
- $('.profile').append( $(this) );
- // Your other custom code
- });
- //该片段来自于http://www.codesnippet.cn/detail/020520133125.html
来源: http://www.codesnippet.cn/detail/020520133125.html