简体   繁体   中英

jQuery error: …easing… is not a function

I'm getting the following error

TypeError: jQuery.easing[this.easing] is not a function
percent, this.options.duration * percent, 0, 1, this.options.duration

The code block from jQuery is

run: function( percent ) {
    var eased,
    hooks = Tween.propHooks[ this.prop ];
    if ( this.options.duration ) {
         this.pos = eased = jQuery.easing[ this.easing ](
         percent, this.options.duration * percent, 0, 1, this.options.duration
        );
    } 
    ...

I attempted to include the jQuery UI (Customized download). Customized with selecting of "Effects Core" only, Which included easing.

 <script src="/jquery-1.10.2.js"></script>
 <script src="/jquery-ui-1.10.4.custom.min.js"></script>

I'm still getting the same ERROR!

Could you try this CDN

//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js

and see if it works?

Try using full version of jquery-ui or at least double check whether you selected easing option while downloading jquery-ui.

try

<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.4/jquery-ui.min.js"></script>

instead

<script src="/jquery-ui-1.10.4.custom.min.js"></script>

if works then double check with downloaded jquery-ui.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM