scrollTo with easing and a callback function
问题 Here is my code thus far: $('.my_button').click(function() { $.scrollTo( '#my_anchor', 1200, {easing:'easeInOutExpo'}, function() { // function not working here }); }); The callback function worked previously, but since I changed to the scrollTo method with easing, it doesn't any more! Just to make it clear I only need to know how to get my callback function working again, everything else is fine. 回答1: There is no forth parameter, but the third parameter (settings) accepts an onAfter callback