Python Генератор Фибоначчи

var $buttons = $('.buttons');

$buttons.each( function (index) { 
    if ( index == $buttons.length - 1 ) {
        $(this).fadeIn('fast',function() {
           // my callback
        });
    } else {
        $(this).fadeIn('fast');
    }
});

Не проверено, но обратный вызов должен применяться только к последней кнопке.

14
задан Mehrdad Pedramfar 11 November 2018 в 14:52
поделиться