“TypeError:jQuery.easing [this.easing]不是函数”在jQuery 1.9.1中 [英] "TypeError: jQuery.easing[this.easing] is not a function" in jQuery 1.9.1

查看:118
本文介绍了“TypeError:jQuery.easing [this.easing]不是函数”在jQuery 1.9.1中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是第一次在太多月(腮红),我升级了我的jQuery东西。我现在在:

For the first time in too many months (blush), I upgraded my jQuery stuff. I'm now on:


  • jquery-1.9.1.js

  • jquery-ui- 1.10.2.custom.js(使用了ThemeRoller,包含了所有组件,包括效果核心,在其描述中提到了缓动)

我还升级到最新版本的jquery.multiselect和jquery.multiselect.filter插件。当我尝试关闭其中一个多选菜单时,我收到此错误:

I also upgraded to the most recent versions of jquery.multiselect and jquery.multiselect.filter plugins. When I try to close one of the multiselect menus, I get this error:

TypeError: jQuery.easing[this.easing] is not a function
jquery-1.9.1.js (line 9033)

注意虽然我在发生错误时使用了多选插件,但实际错误出现在主jQuery文件中。代码是:

Note that although I'm using the multiselect plugin when the error occurs, the actual error is in the main jQuery file. The code is:

/*9031*/ if ( this.options.duration ) {
/*9032*/   this.pos = eased = jQuery.easing[ this.easing ](
/*9033*/     percent, this.options.duration * percent, 0, 1, this.options.duration
/*9034*/   );
/*9035*/ }

我忘记更新某些文件了吗?谷歌搜索它,其他有同样抱怨的人似乎都试图使用某种额外的缓动插件,但我不是。

Did I forget to update some file? Googling about it, others with the same complaint seem to all be trying to use some sort of additional easing plugin, but I'm not.

推荐答案

首次升级到jQuery 1.9时,整个站点的各种动画都会出现此错误。+因为缓动效果名称已更改!!!

This error could happen in various animations throughout your site when first upgrading to jQuery 1.9.+ because the easing effect names have changed !!!

请参阅 http://api.jqueryui.com/easings/
什么无济于事jQueryUI.com网站中的旧示例尚未更新,导致人们认为旧的动画示例名称是正确的。

See http://api.jqueryui.com/easings/ What doesn't help is that the old examples in the jQueryUI.com site havent been updated, leading folks to think that the old animate example names are correct.

示例:手风琴面板bounceslide动画现在是一个名为' easeOutBounce '的封闭版本。截至撰写本文时,字符串bounceslide仍然在网站的示例中:
http:// api。 jqueryui.com/accordion/#option-animate

Example: accordion panels "bounceslide" animation is now a close version of something called 'easeOutBounce'. The string "bounceslide" is still in the sites' example as of this writing: http://api.jqueryui.com/accordion/#option-animate.

我只是意识到动画名称在遵循动画类型中提到的超链接并在我的代码中尝试新名称后发生了变化。

I only realised the animation names had changed after following the hyperlink mentioned in the animate types and trying the new names out within my code.

这篇关于“TypeError:jQuery.easing [this.easing]不是函数”在jQuery 1.9.1中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆