开发者

jQuery(this).clearQueue is not a function

开发者 https://www.devze.com 2023-02-14 14:22 出处:网络
jQuery(function() { jQuery(\"ul.logos-sprite-icon-wrap li a.logos-icon\").hover(function() { jQuery(this).animate({
jQuery(function() {
  jQuery("ul.logos-sprite-icon-wrap li a.logos-icon").hover(function() {
    jQuery(this).animate({
      'padding-top': '0px',
      'padding-bottom': '5px',
    }, 500);
  }, function() {
    jQuery(this).clearQueue();
    jQuery(this).clearQueue().animate({
      'padding-top': '5px',
      'padding-bottom': 开发者_JAVA技巧'0px',
    }, 500);
  });
});

then after i use jQuery share-basket-icon plugins then the error was come to...

jQuery(this).clearQueue is not a function

jQuery(this).clearQueue(); 


Edit: see comments; this is totally wrong. However, since this was added in 1.4, is it possible that you're using an older version of jQuery?

It looks like clearQueue is indeed not a function, but a parameter to .stop():

.stop( [ clearQueue ], [ jumpToEnd ] )

clearQueue - A Boolean indicating whether to remove queued animation as well. Defaults to false.

jumpToEnd - A Boolean indicating whether to complete the current animation immediately. Defaults to false.

http://api.jquery.com/stop

0

精彩评论

暂无评论...
验证码 换一张
取 消