"类型错误:jQuery.easing [this.easing]不是jQuery 1.9.1中的函数"

Osa*_*bie 9 jquery jquery-ui jquery-plugins

在很多个月里第一次(脸红),我升级了我的jQuery东西.我现在在:

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

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

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

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

/*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*/ }
Run Code Online (Sandbox Code Playgroud)

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

Mar*_*OEE 14

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

请参阅http://api.jqueryui.com/easings/ 没有帮助的是jQueryUI.com网站中的旧示例尚未更新,导致人们认为旧的动画示例名称是正确的.

示例: accordion panels"bounceslide"动画现在是名为' easeOutBounce ' 的近似版本.在撰写本文时,字符串"bounceslide"仍然在网站的示例中:http://api.jqueryui.com/accordion/#option-animate .

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


Nal*_*ran 10

包括:

<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>    
Run Code Online (Sandbox Code Playgroud)

注意:如果需要,请更新jquery UI版本.

  • jquery-ui 1.11.4和jQuery MultiSelect UI Widget 1.14pre仍会出现此错误(再次?) (2认同)