這是我的代碼片段。功能之間的延遲
function customFadeIn() {
$("img.imgKit").each(function(index) {
$(this).delay(1000*index).fadeIn("slow");
});
console.log("one runs");
}
function customFadeOut() {
$("img.imgKit").each(function(index) {
$(this).delay(1000*index).not(document.getElementById('card-6')).fadeOut("slow" , function() {
$("#card-6").delay(1000).rotate({angle:0});
});
});
console.log("two runs");
}
我想customFadeOut運行customFadeIn完成後才能,所以我把它稱爲這個
customFadeIn();
customFadeOut();
但它沒有工作,我覺得我做錯了這裏,幫助將是非常很有幫助。
A [現場演示](http://jsfiddle.net/)能重現問題很長的路要走爲了得到我們的幫助,至少表明你願意幫助我們來幫助你=) – 2012-08-15 09:55:25