给定以下代码:
$(classeDoFlipContainer).css('z-index', '1');
$(classeOpostaDoFlipContainer).css('z-index', '0');
flipBox.flippy({
color_target: "white",
duration: "900",
verso: versoDaImagem,
direction: "BOTTOM",
onFinish: setEventHandlers,
onReverseFinish: setEventHandlers
});
alert('?');
$(classeDoFlipContainer).css('z-index', '0');
$(classeOpostaDoFlipContainer).css('z-index', '1');
我添加了alert('?');
只是为了验证之后的代码flippy()
是否正在执行。但我只有在flippy()
完全完成时才需要它。我怎样才能做到这一点?