【发布时间】:2010-12-05 01:52:46
【问题描述】:
我目前有类似的东西,它在包含图像的目标页面上加载一个 div。
$('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");
});
});
我不知道如何在 div 中的图像完成加载后将 #info 更改为其他内容(这发生在加载返回 html 之后)。有没有办法做到这一点?
【问题讨论】: