【发布时间】:2014-08-02 21:36:19
【问题描述】:
我收到以下错误
TypeError: jQuery.easing[this.easing] is not a function
percent, this.options.duration * percent, 0, 1, this.options.duration
jQuery 的代码块是
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
);
}
...
我尝试包含 jQuery UI(自定义下载)。 仅通过选择“Effects Core”进行自定义,其中包括缓动。
<script src="/jquery-1.10.2.js"></script>
<script src="/jquery-ui-1.10.4.custom.min.js"></script>
我仍然遇到同样的错误!
【问题讨论】:
-
影响所有浏览器?你在什么浏览器下测试这个?另外,请参阅此链接:stackoverflow.com/questions/12592279/… 显然是由于缺少捆绑包中未包含的“扩展”缓动功能。
-
你检查过使用完整版的jquery-ui吗?而不是自定义jquery-ui?只需替换为ajax.aspnetcdn.com/ajax/jquery.ui/1.10.4/jquery-ui.min.js
-
从哪个代码调用的?我们可以有一个堆栈跟踪吗?
标签: javascript jquery jquery-ui jquery-plugins jquery-animate