마지막에 수집 할 수있는 일련의 애니메이션에 일련의 약속을 작성하는 구문은 무엇입니까? jquery 매뉴얼을 읽었으며 관련 SO 질문 몇 개를 보았지만 모든 애니메이션이 완료된 후에 .done() 메시지가 표시되지 않는 것 같습니다. 지금까지약속 문제 모음
코드 :
$.when(
$graphName.fadeIn(500).promise().then(function(){
$graphaxes.each(function(index) {
$(this).delay(500*index).fadeIn(700).promise().then(function(){
$(".circle.bk").each(function(index) {
$(this).delay(500*index).fadeIn(700).promise().then(function(){
$graphlabel.each(function(index) {
$(this).delay(600).fadeIn(800).promise().then(function(){
fadeLabels();
$(".circle").each(function(index) {
$(this).delay(500*index).fadeIn(700).promise();
});
});
});
});
});
});
});
})
).done(function(){
console.log("All animations complete");
});
삭제 한 다음 삭제를 취소하셨습니까? 답변을 원하십니까? 아니면 다시 삭제 하시겠습니까? –
답변이나 올바른 방향으로 한 지점을 알려주세요! 미리 감사드립니다. – lxm7