更新时间:2023-12-02 11:40:34
只要检查元素是否已经在动画:
Just check if element is already animating:
$('a#right').click( function () {
if ($(this).is(':visible') && !$('#slide').is(':animated')) {
$('#slide').animate({right: '+=257'}, 400, function () {
slide_button();
});
}
});