目前,我有一些类似的插入后,图像加载,加载在它具有图像目标网页div。搞清楚的时候都用jQuery.load(“url.html”)
$('a.galleryNext').click(function(){
// chnage the image to loading
$("#info").html("LOADING");
$("#currentGal").load("gallery.php div#gallery"+currentgallery, function(){
//this fires much too early, the images are still loading...
$("#info").html("DONE");
});
});
我无法弄清楚是怎么#info变成在div完成加载(这恰好负载返回HTML之后)的影像后,别的东西。有没有办法做到这一点?
现在这个答案是没用的,因为链接被破坏了。 你应该添加一个简短的描述来描述解决方案 – tousif 2015-04-13 10:26:20