TypeError: $.debounce is not a function

后端 未结 1 768
天涯浪人
天涯浪人 2021-01-18 00:13

I am using this code:

function resizeJquerySteps() {
    $(\'.wizard .content\').animate({
        height: $(\'.body.current\').outerHeight()
    }, \'slow\'         


        
相关标签:
1条回答
  • 2021-01-18 01:02

    This function defined in some library like this http://benalman.com/code/projects/jquery-throttle-debounce/jquery.ba-throttle-debounce.js

    You need to include this library into your project. See example here http://jsfiddle.net/hYsRh/4/

    $(window).scroll($.debounce( 250, true, function(){
      $('#scrollMsg').html('SCROLLING!');
    } ) );
    
    0 讨论(0)
提交回复
热议问题