jQuery.easing[jQuery.easing.def] is not a function

后端 未结 9 832
春和景丽
春和景丽 2020-12-25 13:12

I am getting below error when I look in the console:

jQuery.easing[jQuery.easing.def] is not a function

I am trying to make a slider on Wor

相关标签:
9条回答
  • 2020-12-25 13:54

    Please check that whether you are loading jQuery more than once. If you have inserted in the footer manually, try removing it.

    0 讨论(0)
  • 2020-12-25 13:54
    if(typeof jQuery.easing[jQuery.easing.def] == 'function'){
        return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
    }
    

    try this code on swing() function on easing.js

    0 讨论(0)
  • 2020-12-25 14:04

    It may happen if you are calling the WordPress slider plugin's javascript before jQuery or jQuery UI call.

    Does it resolve this way?

    <script type="text/javascript"
            src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
        <script type="text/javascript"
            src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
        <script type="text/javascript"
            src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="/wordpress-slider-plugin.js"></script>
    
    0 讨论(0)
提交回复
热议问题